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

Side by Side Diff: Source/devtools/front_end/ui/KeyboardShortcut.js

Issue 1273363002: Devtools UI: Show multiple shortcuts, show more shortcuts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/ui/ContextMenu.js ('k') | Source/devtools/front_end/ui/Toolbar.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 * @param {number} m 298 * @param {number} m
299 * @return {string} 299 * @return {string}
300 */ 300 */
301 function mapModifiers(m) 301 function mapModifiers(m)
302 { 302 {
303 return modifiers & m ? /** @type {string} */ (modifierNames.get(m)) : "" ; 303 return modifiers & m ? /** @type {string} */ (modifierNames.get(m)) : "" ;
304 } 304 }
305 }; 305 };
306 306
307 WebInspector.KeyboardShortcut.SelectAll = WebInspector.KeyboardShortcut.makeKey( "a", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta); 307 WebInspector.KeyboardShortcut.SelectAll = WebInspector.KeyboardShortcut.makeKey( "a", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta);
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/ContextMenu.js ('k') | Source/devtools/front_end/ui/Toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698