]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove rename
authorErik Sargent <esthepiking@gmail.com>
Tue, 4 Dec 2012 16:40:17 +0000 (09:40 -0700)
committerErik Sargent <esthepiking@gmail.com>
Tue, 4 Dec 2012 16:40:17 +0000 (09:40 -0700)
apps/files/js/keyboardshortcuts.js

index 35a94eeacd2b38bea0393e9b78f7fd9233119415..69656b9364d74522a9cdf36a6f13ad76bda1683d 100644 (file)
@@ -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);
        });