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

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

Issue 2094873002: DevTools: fix deepActiveElement and focus on Dialog when document blurs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-added buttons as default elements and fix deepActiveElement and dialog focus Created 4 years, 6 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/Dialog.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 231d4de44ed8d2905b3569ca9fa89933cd22d38c..1b577335e2cc8c9cd9f29dad7b6cb80887329b2e 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -876,6 +876,9 @@ WebInspector.setCurrentFocusElement = function(x)
}
} else if (WebInspector._previousFocusElement)
WebInspector._previousFocusElement.blur();
+
+ if (!x)
+ WebInspector.Dialog.focus();
dgozman 2016/06/29 22:19:15 I wonder how the dialog is different from document
luoe 2016/06/30 00:03:16 When the document is blurred (e.g. clicking on a n
}
WebInspector.restoreFocusFromElement = function(element)
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Dialog.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698