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

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

Issue 1944993002: Revert of DevTools: fix focus restoration from command menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index 5cea6808f2a98ad81c5514a524d96fb2629df22a..a98a6bdbeb2108c8a2e6c1ba092564b68c7ba93d 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -214,12 +214,19 @@
dispose: function()
{
delete WebInspector._glassPane;
+ if (WebInspector.GlassPane.DefaultFocusedViewStack.length)
+ WebInspector.GlassPane.DefaultFocusedViewStack.peekLast().focus();
this.element.remove();
}
}
/** @type {!WebInspector.GlassPane|undefined} */
WebInspector._glassPane;
+
+/**
+ * @type {!Array.<!WebInspector.Widget|!WebInspector.Dialog>}
+ */
+WebInspector.GlassPane.DefaultFocusedViewStack = [];
/**
* @param {?Node=} node
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698