Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js

Issue 2314283002: Roll Polymer (Closed)
Patch Set: dep Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 (function() { 1 (function() {
2 'use strict'; 2 'use strict';
3 3
4 /** 4 /**
5 * Chrome uses an older version of DOM Level 3 Keyboard Events 5 * Chrome uses an older version of DOM Level 3 Keyboard Events
6 * 6 *
7 * Most keys are labeled as text, but some are Unicode codepoints. 7 * Most keys are labeled as text, but some are Unicode codepoints.
8 * Values taken from: http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-200712 21/keyset.html#KeySet-Set 8 * Values taken from: http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-200712 21/keyset.html#KeySet-Set
9 */ 9 */
10 var KEY_IDENTIFIER = { 10 var KEY_IDENTIFIER = {
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 }, 293 },
294 294
295 observers: [ 295 observers: [
296 '_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)' 296 '_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)'
297 ], 297 ],
298 298
299 299
300 /** 300 /**
301 * To be used to express what combination of keys will trigger the relati ve 301 * To be used to express what combination of keys will trigger the relati ve
302 * callback. e.g. `keyBindings: { 'esc': '_onEscPressed'}` 302 * callback. e.g. `keyBindings: { 'esc': '_onEscPressed'}`
303 * @type {Object} 303 * @type {!Object}
304 */ 304 */
305 keyBindings: {}, 305 keyBindings: {},
306 306
307 registered: function() { 307 registered: function() {
308 this._prepKeyBindings(); 308 this._prepKeyBindings();
309 }, 309 },
310 310
311 attached: function() { 311 attached: function() {
312 this._listenKeyEventListeners(); 312 this._listenKeyEventListeners();
313 }, 313 },
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 detail: detail, 469 detail: detail,
470 cancelable: true 470 cancelable: true
471 }); 471 });
472 this[handlerName].call(this, event); 472 this[handlerName].call(this, event);
473 if (event.defaultPrevented) { 473 if (event.defaultPrevented) {
474 keyboardEvent.preventDefault(); 474 keyboardEvent.preventDefault();
475 } 475 }
476 } 476 }
477 }; 477 };
478 })(); 478 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698