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

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

Issue 1922303004: DevTools: fix focus restoration from command menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace stack with hasInstance Created 4 years, 8 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..f2dfafbf915fe0379db20fb906eed80bf705e3da 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()) {
pfeldman 2016/05/02 18:50:24 no need for !!
if (event && !isPossiblyInputKey())
event.consume(true);
return;

Powered by Google App Engine
This is Rietveld 408576698