Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: lib/keySelector.js

Issue 5462707926990848: Issue 1434 - Removed remaining non-standard JavaScript code from buildtools (Closed)
Left Patch Set: Replaced some more function expressions Created April 1, 2015, 2:26 p.m.
Right Patch Set: Rebased Created Dec. 16, 2015, noon
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/hooks.js ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 Cu.import("resource://gre/modules/Services.jsm"); 5 Cu.import("resource://gre/modules/Services.jsm");
6 6
7 let validModifiers = Object.create(null); 7 let validModifiers = Object.create(null);
8 validModifiers.ACCEL = null; 8 validModifiers.ACCEL = null;
9 validModifiers.CTRL = "control"; 9 validModifiers.CTRL = "control";
10 validModifiers.CONTROL = "control"; 10 validModifiers.CONTROL = "control";
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return false; 203 return false;
204 if (key.meta != event.metaKey || key.control != event.ctrlKey) 204 if (key.meta != event.metaKey || key.control != event.ctrlKey)
205 return false; 205 return false;
206 206
207 if (key.char && event.charCode && String.fromCharCode(event.charCode).toUpperC ase() == key.char) 207 if (key.char && event.charCode && String.fromCharCode(event.charCode).toUpperC ase() == key.char)
208 return true; 208 return true;
209 if (key.code && event.keyCode && event.keyCode == key.code) 209 if (key.code && event.keyCode && event.keyCode == key.code)
210 return true; 210 return true;
211 return false; 211 return false;
212 }; 212 };
LEFTRIGHT
« lib/hooks.js ('k') | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld