| Index: third_party/polymer/components/iron-behaviors/iron-button-state.html
|
| diff --git a/third_party/polymer/components/iron-behaviors/iron-button-state.html b/third_party/polymer/components/iron-behaviors/iron-button-state.html
|
| index 8114e2ddea8de7bfbe069304e56e7aef6640d425..c5221b8e1dd3b24ab281b8054c2d7c41e2943594 100644
|
| --- a/third_party/polymer/components/iron-behaviors/iron-button-state.html
|
| +++ b/third_party/polymer/components/iron-behaviors/iron-button-state.html
|
| @@ -91,7 +91,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| },
|
|
|
| observers: [
|
| - '_detectKeyboardFocus(focused)',
|
| + '_focusChanged(focused)',
|
| '_activeChanged(active, ariaActiveAttribute)'
|
| ],
|
|
|
| @@ -112,6 +112,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| }
|
| },
|
|
|
| + _focusChanged: function(focused) {
|
| + this._detectKeyboardFocus(focused);
|
| +
|
| + if (!focused) {
|
| + this._setPressed(false);
|
| + }
|
| + },
|
| +
|
| _detectKeyboardFocus: function(focused) {
|
| this._setReceivedFocusFromKeyboard(!this.pointerDown && focused);
|
| },
|
|
|