diff options
author | Erik Sargent <esthepiking@gmail.com> | 2012-12-04 09:40:17 -0700 |
---|---|---|
committer | Erik Sargent <esthepiking@gmail.com> | 2012-12-04 09:40:17 -0700 |
commit | 93208d0fe922c64dd2bacc8bf102dbf4be4562b7 (patch) | |
tree | ba990aca482d59f63ed708956ff7380c32c59fe6 /apps/files/js/keyboardshortcuts.js | |
parent | 47fa3a8fe02ed79a0fc1dc6b5673631fee847ae5 (diff) | |
download | nextcloud-server-93208d0fe922c64dd2bacc8bf102dbf4be4562b7.tar.gz nextcloud-server-93208d0fe922c64dd2bacc8bf102dbf4be4562b7.zip |
Remove rename
Diffstat (limited to 'apps/files/js/keyboardshortcuts.js')
-rw-r--r-- | apps/files/js/keyboardshortcuts.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/js/keyboardshortcuts.js b/apps/files/js/keyboardshortcuts.js index 35a94eeacd2..69656b9364d 100644 --- a/apps/files/js/keyboardshortcuts.js +++ b/apps/files/js/keyboardshortcuts.js @@ -142,7 +142,7 @@ Files.bindKeyboardShortcuts = function (document, $) { ){ preventDefault = true;//new file/folder prevent browser from responding } - if( + /*if( !$("#new").hasClass("active") && $.inArray(keyCodes.r, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 @@ -158,7 +158,7 @@ Files.bindKeyboardShortcuts = function (document, $) { preventDefault = true; } }); - } + }*/ if(preventDefault){ event.preventDefault(); //Prevent web browser from responding event.stopPropagation(); @@ -201,7 +201,7 @@ Files.bindKeyboardShortcuts = function (document, $) { else if(!$("#new").hasClass("active") && $.inArray(keyCodes.del, keys) !== -1) {//delete file del(); } - else if( + /*else if( !$("#new").hasClass("active") && $.inArray(keyCodes.r, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 @@ -213,7 +213,7 @@ Files.bindKeyboardShortcuts = function (document, $) { && $.inArray(keyCodes.shift, keys) !== -1 ){//rename file rename(); - } + }*/ removeA(keys, event.keyCode); }); |