]> source.dussan.org Git - nextcloud-server.git/commitdiff
event.ctrlKey
authorErik Sargent <esthepiking@gmail.com>
Fri, 30 Nov 2012 17:10:00 +0000 (10:10 -0700)
committerErik Sargent <esthepiking@gmail.com>
Fri, 30 Nov 2012 17:10:00 +0000 (10:10 -0700)
apps/files/js/keyboardshortcuts.js

index 1d4f068341be37f062fcf1c54cf57b81477d5600..c430ed2d741612f96b9f339d958fbd86ea006963 100644 (file)
@@ -148,7 +148,8 @@ Files.bindKeyboardShortcuts = function (document, $) {
                        || $.inArray(keyCodes.cmdOpera, keys) !== -1
                        || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1
                        || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1
-                       || $.inArray(keyCodes.ctrl, keys) !== -1)
+                       || $.inArray(keyCodes.ctrl, keys) !== -1
+                       || event.ctrlKey)
                        && $.inArray(keyCodes.shift, keys) !== -1
                ){
                        $("#fileList tr").each(function(index){//prevent default when renaming file/folder
@@ -172,7 +173,9 @@ Files.bindKeyboardShortcuts = function (document, $) {
                        || $.inArray(keyCodes.cmdOpera, keys) !== -1
                        || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1
                        || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1
-                       || $.inArray(keyCodes.ctrl, keys) !== -1)){
+                       || $.inArray(keyCodes.ctrl, keys) !== -1
+                       || event.ctrlKey
+               )){
                        if($.inArray(keyCodes.shift, keys) !== -1
                ){ //16=shift, New File
                                newFile();
@@ -204,7 +207,8 @@ Files.bindKeyboardShortcuts = function (document, $) {
                        || $.inArray(keyCodes.cmdOpera, keys) !== -1
                        || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1
                        || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1
-                       || $.inArray(keyCodes.ctrl, keys) !== -1)
+                       || $.inArray(keyCodes.ctrl, keys) !== -1
+                       || event.ctrlKey)
                        && $.inArray(keyCodes.shift, keys) !== -1
                ){//rename file
                        rename();