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

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

Issue 2319523004: DevTools: Remember the last focused widget. (Closed)
Patch Set: Fix stray braces 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/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 7f1f3748b5fc8d4d38534b349f52df6ad369d243..e5a63b32b5234a929763ed281a9c2917a69640d9 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -869,6 +869,8 @@ WebInspector.setCurrentFocusElement = function(x)
selection.removeAllRanges();
selection.addRange(selectionRange);
}
+
+ WebInspector.Widget.focusWidgetForNode(x);
pfeldman 2016/09/08 00:53:50 I'd listen to focus event independently to decoupl
einbinder 2016/09/09 01:32:16 Listening for focus is a bit complicated because o
} else if (WebInspector._previousFocusElement)
WebInspector._previousFocusElement.blur();
}

Powered by Google App Engine
This is Rietveld 408576698