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

Merge pull request #842 from owncloud/restrict_keyboard_shortcuts

prevent keyboardshortcuts from catching events outside the main doc - e....
parents 6861d427 e8897c2b
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