| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 /** @typedef {!{code: number, name: (string|!Object.<string, string>)}} */ | 59 /** @typedef {!{code: number, name: (string|!Object.<string, string>)}} */ |
| 60 WebInspector.KeyboardShortcut.Key; | 60 WebInspector.KeyboardShortcut.Key; |
| 61 | 61 |
| 62 /** @type {!Object.<string, !WebInspector.KeyboardShortcut.Key>} */ | 62 /** @type {!Object.<string, !WebInspector.KeyboardShortcut.Key>} */ |
| 63 WebInspector.KeyboardShortcut.Keys = { | 63 WebInspector.KeyboardShortcut.Keys = { |
| 64 Backspace: { code: 8, name: "\u21a4" }, | 64 Backspace: { code: 8, name: "\u21a4" }, |
| 65 Tab: { code: 9, name: { mac: "\u21e5", other: "Tab" } }, | 65 Tab: { code: 9, name: { mac: "\u21e5", other: "Tab" } }, |
| 66 Enter: { code: 13, name: { mac: "\u21a9", other: "Enter" } }, | 66 Enter: { code: 13, name: { mac: "\u21a9", other: "Enter" } }, |
| 67 Shift: { code: 16, name: { mac: "\u21e7", other: "Shift" } }, | 67 Shift: { code: 16, name: { mac: "\u21e7", other: "Shift" } }, |
| 68 Ctrl: { code: 17, name: "Ctrl" }, | 68 Ctrl: { code: 17, name: "Ctrl" }, |
| 69 Esc: { code: 27, name: { mac: "\u238b", other: "Esc" } }, | 69 Esc: { code: 27, name: "Esc" }, |
| 70 Space: { code: 32, name: "Space" }, | 70 Space: { code: 32, name: "Space" }, |
| 71 PageUp: { code: 33, name: { mac: "\u21de", other: "PageUp" } }, // als
o NUM_NORTH_EAST | 71 PageUp: { code: 33, name: { mac: "\u21de", other: "PageUp" } }, // als
o NUM_NORTH_EAST |
| 72 PageDown: { code: 34, name: { mac: "\u21df", other: "PageDown" } }, // als
o NUM_SOUTH_EAST | 72 PageDown: { code: 34, name: { mac: "\u21df", other: "PageDown" } }, // als
o NUM_SOUTH_EAST |
| 73 End: { code: 35, name: { mac: "\u2197", other: "End" } }, // als
o NUM_SOUTH_WEST | 73 End: { code: 35, name: { mac: "\u2197", other: "End" } }, // als
o NUM_SOUTH_WEST |
| 74 Home: { code: 36, name: { mac: "\u2196", other: "Home" } }, // als
o NUM_NORTH_WEST | 74 Home: { code: 36, name: { mac: "\u2196", other: "Home" } }, // als
o NUM_NORTH_WEST |
| 75 Left: { code: 37, name: "\u2190" }, // also NUM_WEST | 75 Left: { code: 37, name: "\u2190" }, // also NUM_WEST |
| 76 Up: { code: 38, name: "\u2191" }, // also NUM_NORTH | 76 Up: { code: 38, name: "\u2191" }, // also NUM_NORTH |
| 77 Right: { code: 39, name: "\u2192" }, // also NUM_EAST | 77 Right: { code: 39, name: "\u2192" }, // also NUM_EAST |
| 78 Down: { code: 40, name: "\u2193" }, // also NUM_SOUTH | 78 Down: { code: 40, name: "\u2193" }, // also NUM_SOUTH |
| 79 Delete: { code: 46, name: "Del" }, | 79 Delete: { code: 46, name: "Del" }, |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 var modifierNames = new Map([ | 289 var modifierNames = new Map([ |
| 290 [m.Ctrl, isMac ? "\u2303" : "Ctrl\u200A+\u200A"], | 290 [m.Ctrl, isMac ? "\u2303" : "Ctrl\u200A+\u200A"], |
| 291 [m.Alt, isMac ? "\u2325" : "Alt\u200A+\u200A"], | 291 [m.Alt, isMac ? "\u2325" : "Alt\u200A+\u200A"], |
| 292 [m.Shift, isMac ? "\u21e7" : "Shift\u200A+\u200A"], | 292 [m.Shift, isMac ? "\u21e7" : "Shift\u200A+\u200A"], |
| 293 [m.Meta, isMac ? "\u2318" : "Win\u200A+\u200A"] | 293 [m.Meta, isMac ? "\u2318" : "Win\u200A+\u200A"] |
| 294 ]); | 294 ]); |
| 295 return [m.Ctrl, m.Alt, m.Shift, m.Meta].map(m => modifiers & m ? modifierNam
es.get(m) : "").join(""); | 295 return [m.Ctrl, m.Alt, m.Shift, m.Meta].map(m => modifiers & m ? modifierNam
es.get(m) : "").join(""); |
| 296 }; | 296 }; |
| 297 | 297 |
| 298 WebInspector.KeyboardShortcut.SelectAll = WebInspector.KeyboardShortcut.makeKey(
"a", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta); | 298 WebInspector.KeyboardShortcut.SelectAll = WebInspector.KeyboardShortcut.makeKey(
"a", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta); |
| OLD | NEW |