Index: Source/devtools/front_end/ui/ShortcutRegistry.js |
diff --git a/Source/devtools/front_end/ui/ShortcutRegistry.js b/Source/devtools/front_end/ui/ShortcutRegistry.js |
index 2e5c1cac710bc0db6a4a3826a07bf644d093b0d9..82af1be4d9ada60051517d5b041d36f48a980140 100644 |
--- a/Source/devtools/front_end/ui/ShortcutRegistry.js |
+++ b/Source/devtools/front_end/ui/ShortcutRegistry.js |
@@ -89,6 +89,7 @@ WebInspector.ShortcutRegistry.prototype = { |
*/ |
handleKey: function(key, keyIdentifier, event) |
{ |
+ var keyModifiers = key >> 8; |
var actionIds = this.applicableActions(key); |
if (WebInspector.GlassPane.DefaultFocusedViewStack.length > 1) { |
if (actionIds.length && !isPossiblyInputKey()) |
@@ -97,7 +98,6 @@ WebInspector.ShortcutRegistry.prototype = { |
} |
for (var i = 0; i < actionIds.length; ++i) { |
- var keyModifiers = key >> 8; |
if (!isPossiblyInputKey()) { |
if (handler.call(this, actionIds[i])) |
break; |