Skip to content
Snippets Groups Projects
Commit e8897c2b authored by Thomas Müller's avatar Thomas Müller
Browse files

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

parent 72fe339c
No related branches found
No related tags found
No related merge requests found
......@@ -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 (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment