| LEFT | RIGHT |
| 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 Loading... |
| 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 }; |
| LEFT | RIGHT |