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

Unified Diff: ui/webui/resources/js/cr/ui/overlay.js

Issue 1162293008: Fix some lingering WebUI focus issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +1 fix Created 5 years, 7 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: ui/webui/resources/js/cr/ui/overlay.js
diff --git a/ui/webui/resources/js/cr/ui/overlay.js b/ui/webui/resources/js/cr/ui/overlay.js
index 892df027f375e09ccdabc292bb974436868fe4c2..84a6ddebba63358585f815e1d22a716b44b43758 100644
--- a/ui/webui/resources/js/cr/ui/overlay.js
+++ b/ui/webui/resources/js/cr/ui/overlay.js
@@ -97,6 +97,8 @@ cr.define('cr.ui.overlay', function() {
var closeButtons = overlay.querySelectorAll('.page > .close-button');
for (var i = 0; i < closeButtons.length; i++) {
closeButtons[i].addEventListener('click', function(e) {
+ // Dispatch this so FocusOutlineManager updates.
+ cr.dispatchSimpleEvent(e.currentTarget, 'focus', true);
Dan Beam 2015/06/04 03:30:29 FocusOutlineManager is not guaranteed to exist in
cr.dispatchSimpleEvent(overlay, 'cancelOverlay');
});
}

Powered by Google App Engine
This is Rietveld 408576698