Commit 0a990628 authored by vsevik@chromium.org's avatar vsevik@chromium.org

DevTools: Fix focus handling in debug mode.

BUG=423320
R=pfeldman, loislo

Review URL: https://codereview.chromium.org/660483002

git-svn-id: svn://svn.chromium.org/blink/trunk@183748 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8ad6ec9a
......@@ -127,6 +127,7 @@ WebInspector.Main.prototype = {
{
console.timeStamp("Main._loaded");
WebInspector.initializeUIUtils();
this._createSettings();
this._createAppUI();
},
......
......@@ -1071,17 +1071,10 @@ WebInspector.LongClickController.prototype = {
__proto__: WebInspector.Object.prototype
}
;(function() {
function windowLoaded()
WebInspector.initializeUIUtils = function()
{
window.addEventListener("focus", WebInspector._windowFocused, false);
window.addEventListener("blur", WebInspector._windowBlurred, false);
document.addEventListener("focus", WebInspector._focusChanged, true);
document.addEventListener("blur", WebInspector._documentBlurred, true);
window.removeEventListener("DOMContentLoaded", windowLoaded, false);
}
window.addEventListener("DOMContentLoaded", windowLoaded, false);
})();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment