OLD | NEW |
1 | 1 |
2 | 2 |
3 /* | 3 /* |
4 `iron-a11y-keys` provides a normalized interface for processing keyboard command
s that pertain to [WAI-ARIA best | 4 `iron-a11y-keys` provides a normalized interface for processing keyboard command
s that pertain to [WAI-ARIA best |
5 practices](http://www.w3.org/TR/wai-aria-practices/#kbd_general_binding). The el
ement takes care of browser differences | 5 practices](http://www.w3.org/TR/wai-aria-practices/#kbd_general_binding). The el
ement takes care of browser differences |
6 with respect to Keyboard events and uses an expressive syntax to filter key pres
ses. | 6 with respect to Keyboard events and uses an expressive syntax to filter key pres
ses. |
7 | 7 |
8 Use the `keys` attribute to express what combination of keys will trigger the ev
ent to fire. | 8 Use the `keys` attribute to express what combination of keys will trigger the ev
ent to fire. |
9 | 9 |
10 Use the `target` attribute to set up event handlers on a specific node. | 10 Use the `target` attribute to set up event handlers on a specific node. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 _keysChanged: function() { | 98 _keysChanged: function() { |
99 this.removeOwnKeyBindings(); | 99 this.removeOwnKeyBindings(); |
100 this.addOwnKeyBinding(this.keys, '_fireKeysPressed'); | 100 this.addOwnKeyBinding(this.keys, '_fireKeysPressed'); |
101 }, | 101 }, |
102 | 102 |
103 _fireKeysPressed: function(event) { | 103 _fireKeysPressed: function(event) { |
104 this.fire('keys-pressed', event.detail, {}); | 104 this.fire('keys-pressed', event.detail, {}); |
105 } | 105 } |
106 }); | 106 }); |
OLD | NEW |