This commit is contained in:
Zixaphir 2013-08-16 00:07:25 -07:00
parent 16a871e38d
commit 4948cb3b7c
4 changed files with 17 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.3.2 - 2013-08-15
* appchan x - Version 2.3.2 - 2013-08-16
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -18,7 +18,7 @@
// ==/UserScript==
/*
* appchan x - Version 2.3.2 - 2013-08-15
* appchan x - Version 2.3.2 - 2013-08-16
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -7721,9 +7721,13 @@
return QR.fileInput(files);
},
openFileInput: function(e) {
if (e.keyCode && e.keyCode !== 32) {
e.preventDefault();
if (e.keyCode && ![32, 13].contains(e.keyCode)) {
return;
}
if (e.shiftKey && !e.keyCode) {
return QR.selected.rmFile();
}
return QR.nodes.fileInput.click();
},
fileInput: function(files) {

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript
/*
* appchan x - Version 2.3.2 - 2013-08-15
* appchan x - Version 2.3.2 - 2013-08-16
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -7733,9 +7733,13 @@
return QR.fileInput(files);
},
openFileInput: function(e) {
if (e.keyCode && e.keyCode !== 32) {
e.preventDefault();
if (e.keyCode && ![32, 13].contains(e.keyCode)) {
return;
}
if (e.shiftKey && !e.keyCode) {
return QR.selected.rmFile();
}
return QR.nodes.fileInput.click();
},
fileInput: function(files) {

View File

@ -441,7 +441,10 @@ QR =
QR.fileInput files
openFileInput: (e) ->
return if e.keyCode and e.keyCode isnt 32
e.preventDefault()
return if e.keyCode and not [32, 13].contains e.keyCode
if e.shiftKey and not e.keyCode
return QR.selected.rmFile()
QR.nodes.fileInput.click()
fileInput: (files) ->