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

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

Issue 2016963002: DevTools: rework focus logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move Dialog logic into Dialog; opening tabs will focus if no focus was set Created 4 years, 7 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
Index: third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js b/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js
index a0137429fef72b7c1cfb7563dfce843287883482..ae3e4b3622630a6b86e95eec201f592c56004c31 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js
@@ -90,7 +90,7 @@ WebInspector.ShortcutRegistry.prototype = {
var actions = this._applicableActions(key);
if (!actions.length)
return;
- if (WebInspector.GlassPane.DefaultFocusedViewStack.length > 1) {
+ if (WebInspector.Dialog.hasInstance()) {
if (event && !isPossiblyInputKey())
event.consume(true);
return;

Powered by Google App Engine
This is Rietveld 408576698