Commit c2b4f57f authored by vsevik@chromium.org's avatar vsevik@chromium.org

DevTools: Fix DefaultFocusedViewStack handling for dialogs.

BUG=392793
R=apavlov, dgozman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178372 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7c75cc5d
...@@ -87,6 +87,11 @@ WebInspector.Dialog.hide = function() ...@@ -87,6 +87,11 @@ WebInspector.Dialog.hide = function()
} }
WebInspector.Dialog.prototype = { WebInspector.Dialog.prototype = {
focus: function()
{
this._element.focus();
},
_hide: function() _hide: function()
{ {
if (this._isHiding) if (this._isHiding)
......
...@@ -163,7 +163,7 @@ WebInspector.GlassPane.prototype = { ...@@ -163,7 +163,7 @@ WebInspector.GlassPane.prototype = {
} }
/** /**
* @type {!Array.<!WebInspector.View>} * @type {!Array.<!WebInspector.View|!WebInspector.Dialog>}
*/ */
WebInspector.GlassPane.DefaultFocusedViewStack = []; WebInspector.GlassPane.DefaultFocusedViewStack = [];
......
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