summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Sargent <esthepiking@gmail.com>2012-11-30 10:11:25 -0700
committerErik Sargent <esthepiking@gmail.com>2012-11-30 10:11:25 -0700
commit47fa3a8fe02ed79a0fc1dc6b5673631fee847ae5 (patch)
tree3ddc5ac1de9c605e3173c8aef30901be8d6e8e81
parent5d13b0533dce98cabd251c929ae50f74436ce68e (diff)
downloadnextcloud-server-47fa3a8fe02ed79a0fc1dc6b5673631fee847ae5.tar.gz
nextcloud-server-47fa3a8fe02ed79a0fc1dc6b5673631fee847ae5.zip
event.ctrlKey
-rw-r--r--apps/files/js/keyboardshortcuts.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/keyboardshortcuts.js b/apps/files/js/keyboardshortcuts.js
index c430ed2d741..35a94eeacd2 100644
--- a/apps/files/js/keyboardshortcuts.js
+++ b/apps/files/js/keyboardshortcuts.js
@@ -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
}