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

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

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 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
2 (function() {
2 'use strict'; 3 'use strict';
3 4
4 /** 5 /**
5 * Chrome uses an older version of DOM Level 3 Keyboard Events 6 * Chrome uses an older version of DOM Level 3 Keyboard Events
6 * 7 *
7 * Most keys are labeled as text, but some are Unicode codepoints. 8 * 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 9 * Values taken from: http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-200712 21/keyset.html#KeySet-Set
9 */ 10 */
10 var KEY_IDENTIFIER = { 11 var KEY_IDENTIFIER = {
11 'U+0009': 'tab', 12 'U+0009': 'tab',
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 398
398 _triggerKeyHandler: function(keyCombo, handlerName, keyboardEvent) { 399 _triggerKeyHandler: function(keyCombo, handlerName, keyboardEvent) {
399 var detail = Object.create(keyCombo); 400 var detail = Object.create(keyCombo);
400 detail.keyboardEvent = keyboardEvent; 401 detail.keyboardEvent = keyboardEvent;
401 402
402 this[handlerName].call(this, new CustomEvent(keyCombo.event, { 403 this[handlerName].call(this, new CustomEvent(keyCombo.event, {
403 detail: detail 404 detail: detail
404 })); 405 }));
405 } 406 }
406 }; 407 };
407 })(); 408 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698