| Index: third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js b/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
|
| index 0d33461d0cab4c58eceabc08ddc92bc44206e657..ce9e26d3eb452b32c7f82276e33fe6fc66456d30 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
|
| @@ -228,8 +228,8 @@ WebInspector.Spectrum.prototype = {
|
|
|
| _focus: function()
|
| {
|
| - if (this.isShowing() && WebInspector.currentFocusElement() !== this.contentElement)
|
| - WebInspector.setCurrentFocusElement(this.contentElement);
|
| + if (this.isShowing())
|
| + this.contentElement.focus();
|
| },
|
|
|
| /**
|
| @@ -328,7 +328,7 @@ WebInspector.Spectrum.prototype = {
|
| this._shadesContainer.appendChild(shadeElement);
|
| }
|
|
|
| - WebInspector.setCurrentFocusElement(this._shadesContainer);
|
| + this._shadesContainer.focus();
|
| this._shadesCloseHandler = closeLightnessShades.bind(this, colorElement);
|
| this._shadesContainer.ownerDocument.addEventListener("mousedown", this._shadesCloseHandler, true);
|
| },
|
|
|