]> source.dussan.org Git - nextcloud-server.git/commitdiff
prevent keyboardshortcuts from catching events outside the main doc - e.g. the share...
authorThomas Mueller <thomas.mueller@tmit.eu>
Wed, 12 Dec 2012 11:55:29 +0000 (12:55 +0100)
committerTom Needham <needham.thomas@gmail.com>
Sat, 29 Dec 2012 19:30:31 +0000 (19:30 +0000)
apps/files/js/keyboardshortcuts.js

index 562755f55b7608d956190be658a75d58b7c32624..cc2b5d4213914404d761758802f245b9b935cd58 100644 (file)
@@ -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 (