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

index c430ed2d741612f96b9f339d958fbd86ea006963..35a94eeacd2b38bea0393e9b78f7fd9233119415 100644 (file)
@@ -137,7 +137,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)
                ){
                        preventDefault = true;//new file/folder prevent browser from responding
                }