| Index: third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js
|
| index 3b17bc2ab39595b852d7dbfad8f016eb19186223..7b534344be0c3d0a416cb1a9027b8124cb6b92bd 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js
|
| @@ -236,7 +236,9 @@
|
| Polymer.IronA11yKeysBehavior = {
|
| properties: {
|
| /**
|
| - * The HTMLElement that will be firing relevant KeyboardEvents.
|
| + * The EventTarget that will be firing relevant KeyboardEvents. Set it to
|
| + * `null` to disable the listeners.
|
| + * @type {?EventTarget}
|
| */
|
| keyEventTarget: {
|
| type: Object,
|
| @@ -382,6 +384,9 @@
|
| },
|
|
|
| _listenKeyEventListeners: function() {
|
| + if (!this.keyEventTarget) {
|
| + return;
|
| + }
|
| Object.keys(this._keyBindings).forEach(function(eventName) {
|
| var keyBindings = this._keyBindings[eventName];
|
| var boundKeyHandler = this._onKeyBindingEvent.bind(this, keyBindings);
|
|
|