mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
prevent keyboardshortcuts from catching events outside the main doc - e.g. the share popup
This commit is contained in:
parent
72fe339c10
commit
e8897c2b7e
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue