Chromium Code Reviews| 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'); |
| }); |
| } |