| Index: Source/devtools/front_end/ui/UIUtils.js
|
| diff --git a/Source/devtools/front_end/ui/UIUtils.js b/Source/devtools/front_end/ui/UIUtils.js
|
| index 22baf783e68e340fb0954e44a65888d02de54f23..eb570da1b1e337ea2f01e8694ed84efd8e175c19 100644
|
| --- a/Source/devtools/front_end/ui/UIUtils.js
|
| +++ b/Source/devtools/front_end/ui/UIUtils.js
|
| @@ -651,6 +651,7 @@ WebInspector.createShadowRootWithCoreStyles = function(element)
|
| var shadowRoot = element.createShadowRoot();
|
| shadowRoot.appendChild(WebInspector.Widget.createStyleElement("ui/inspectorCommon.css"));
|
| shadowRoot.appendChild(WebInspector.Widget.createStyleElement("ui/inspectorSyntaxHighlight.css"));
|
| + shadowRoot.addEventListener("focus", WebInspector._focusChanged.bind(WebInspector), true);
|
| return shadowRoot;
|
| }
|
|
|
| @@ -691,10 +692,9 @@ WebInspector.currentFocusElement = function()
|
| }
|
|
|
| /**
|
| - * @param {!Document} document
|
| * @param {!Event} event
|
| */
|
| -WebInspector._focusChanged = function(document, event)
|
| +WebInspector._focusChanged = function(event)
|
| {
|
| var node = event.deepActiveElement();
|
| WebInspector.setCurrentFocusElement(node);
|
| @@ -1201,7 +1201,7 @@ WebInspector.initializeUIUtils = function(window)
|
| {
|
| window.addEventListener("focus", WebInspector._windowFocused.bind(WebInspector, window.document), false);
|
| window.addEventListener("blur", WebInspector._windowBlurred.bind(WebInspector, window.document), false);
|
| - window.document.addEventListener("focus", WebInspector._focusChanged.bind(WebInspector, window.document), true);
|
| + window.document.addEventListener("focus", WebInspector._focusChanged.bind(WebInspector), true);
|
| window.document.addEventListener("blur", WebInspector._documentBlurred.bind(WebInspector, window.document), true);
|
| }
|
|
|
|
|