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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2377193004: [DevTools] Rework some focus code. (Closed)
Patch Set: FocusRestorer Created 4 years, 3 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/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index e5db6c5da006cc898eaeba93857942ec8f28ffb9..e90d6923a9bac05de33681ec8aaedbcf1dff71c8 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -664,10 +664,11 @@ WebInspector.Main.SearchActionDelegate.prototype = {
* @param {!WebInspector.Context} context
* @param {string} actionId
* @return {boolean}
+ * @suppressGlobalPropertiesCheck
*/
handleAction: function(context, actionId)
{
- var searchableView = WebInspector.SearchableView.fromElement(WebInspector.currentFocusElement()) || WebInspector.inspectorView.currentPanel().searchableView();
+ var searchableView = WebInspector.SearchableView.fromElement(document.deepActiveElement()) || WebInspector.inspectorView.currentPanel().searchableView();
if (!searchableView)
return false;
switch (actionId) {

Powered by Google App Engine
This is Rietveld 408576698