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

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

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 1 (function() {
2 (function() {
3 'use strict'; 2 'use strict';
4 3
5 /** 4 /**
6 * Chrome uses an older version of DOM Level 3 Keyboard Events 5 * Chrome uses an older version of DOM Level 3 Keyboard Events
7 * 6 *
8 * Most keys are labeled as text, but some are Unicode codepoints. 7 * Most keys are labeled as text, but some are Unicode codepoints.
9 * 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
10 */ 9 */
11 var KEY_IDENTIFIER = { 10 var KEY_IDENTIFIER = {
12 'U+0009': 'tab', 11 'U+0009': 'tab',
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 397
399 _triggerKeyHandler: function(keyCombo, handlerName, keyboardEvent) { 398 _triggerKeyHandler: function(keyCombo, handlerName, keyboardEvent) {
400 var detail = Object.create(keyCombo); 399 var detail = Object.create(keyCombo);
401 detail.keyboardEvent = keyboardEvent; 400 detail.keyboardEvent = keyboardEvent;
402 401
403 this[handlerName].call(this, new CustomEvent(keyCombo.event, { 402 this[handlerName].call(this, new CustomEvent(keyCombo.event, {
404 detail: detail 403 detail: detail
405 })); 404 }));
406 } 405 }
407 }; 406 };
408 })(); 407 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698