prevent keyboardshortcuts from catching events outside the main doc - e.g. the share popup

remotes/origin/stable5
Thomas Mueller 12 years ago committed by Tom Needham
parent 3c98f36121
commit 314dd4bacc
  1. 3
      apps/files/js/keyboardshortcuts.js

@ -127,6 +127,9 @@ var Files = Files || {};
}
Files.bindKeyboardShortcuts = function(document, $) {
$(document).keydown(function(event) { //check for modifier keys
if(!$(event.target).is('body')) {
return;
}
var preventDefault = false;
if ($.inArray(event.keyCode, keys) === -1) keys.push(event.keyCode);
if (

Loading…
Cancel
Save