Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2156)

Unified Diff: Source/devtools/front_end/ui/ShortcutRegistry.js

Issue 403523005: DevTools: Consume registered DevTools shortcuts so that they don't trigger default behavior. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698