diff options
author | Erik Sargent <esthepiking@gmail.com> | 2012-11-29 10:21:20 -0700 |
---|---|---|
committer | Erik Sargent <esthepiking@gmail.com> | 2012-11-29 10:21:20 -0700 |
commit | b6e34608715d5d606b29c421067ba4b81ecb437e (patch) | |
tree | 85a6f660a4c9b5eb8cc2461cfb37f0265baf93fa /apps/files/js/keyboardshortcuts.js | |
parent | fd4aecf525810bb2d74de59070734eba465f311f (diff) | |
download | nextcloud-server-b6e34608715d5d606b29c421067ba4b81ecb437e.tar.gz nextcloud-server-b6e34608715d5d606b29c421067ba4b81ecb437e.zip |
documentation
Diffstat (limited to 'apps/files/js/keyboardshortcuts.js')
-rw-r--r-- | apps/files/js/keyboardshortcuts.js | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/apps/files/js/keyboardshortcuts.js b/apps/files/js/keyboardshortcuts.js index 8ba32400079..b00fd649687 100644 --- a/apps/files/js/keyboardshortcuts.js +++ b/apps/files/js/keyboardshortcuts.js @@ -167,26 +167,22 @@ Files.bindKeyboardShortcuts = function (document, $) { } } - else if($("#new").hasClass("active") && $.inArray(keyCodes.esc, keys) !== -1){ + else if($("#new").hasClass("active") && $.inArray(keyCodes.esc, keys) !== -1){ //close new window esc(); } - - else if($.inArray(keyCodes.downArrow, keys) !== -1){ + else if($.inArray(keyCodes.downArrow, keys) !== -1){ //select file down(); } - - else if($.inArray(keyCodes.upArrow, keys) !== -1){ + else if($.inArray(keyCodes.upArrow, keys) !== -1){ //select file up(); } - - else if(!$("#new").hasClass("active") && $.inArray(keyCodes.enter, keys) !== -1){ + else if(!$("#new").hasClass("active") && $.inArray(keyCodes.enter, keys) !== -1){//open file enter(); } - - else if(!$("#new").hasClass("active") && ($.inArray(keyCodes.backspace, keys) !== -1 || $.inArray(keyCodes.del, keys) !== -1)) { + else if(!$("#new").hasClass("active") && ($.inArray(keyCodes.backspace, keys) !== -1 || $.inArray(keyCodes.del, keys) !== -1)) {//delete file del(); } - else if(!$("#new").hasClass("active") && $.inArray(keyCodes.r, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 || $.inArray(keyCodes.cmdOpera, keys) !== -1 || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1 || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1 || $.inArray(keyCodes.ctrl, keys) !== -1) && $.inArray(keyCodes.shift, keys) !== -1){ + else if(!$("#new").hasClass("active") && $.inArray(keyCodes.r, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 || $.inArray(keyCodes.cmdOpera, keys) !== -1 || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1 || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1 || $.inArray(keyCodes.ctrl, keys) !== -1) && $.inArray(keyCodes.shift, keys) !== -1){//rename file rename(); } |