Index: third_party/polymer/v1_0/components-chromium/paper-ripple/paper-ripple-extracted.js |
diff --git a/third_party/polymer/v1_0/components-chromium/paper-ripple/paper-ripple-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-ripple/paper-ripple-extracted.js |
index 2fc2c24919db99555123078c9094e302d0ff8752..b5b233bf4eb8e7271272cc94fc90babbea055233 100644 |
--- a/third_party/polymer/v1_0/components-chromium/paper-ripple/paper-ripple-extracted.js |
+++ b/third_party/polymer/v1_0/components-chromium/paper-ripple/paper-ripple-extracted.js |
@@ -399,10 +399,6 @@ |
} |
}, |
- observers: [ |
- '_noinkChanged(noink, isAttached)' |
- ], |
- |
get target () { |
var ownerRoot = Polymer.dom(this).getOwnerRoot(); |
var target; |
@@ -423,6 +419,10 @@ |
}, |
attached: function() { |
+ // Set up a11yKeysBehavior to listen to key events on the target, |
+ // so that space and enter activate the ripple even if the target doesn't |
+ // handle key events. The key handlers deal with `noink` themselves. |
+ this.keyEventTarget = this.target; |
this.listen(this.target, 'up', 'uiUpAction'); |
this.listen(this.target, 'down', 'uiDownAction'); |
}, |
@@ -592,12 +592,6 @@ |
} else { |
this.upAction(); |
} |
- }, |
- |
- _noinkChanged: function(noink, attached) { |
- if (attached) { |
- this.keyEventTarget = noink ? this : this.target; |
- } |
} |
}); |
})(); |