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

Side by Side Diff: Source/devtools/front_end/components/ShortcutsScreen.js

Issue 982863002: Devtools: [SourcesPanel] register shortcuts via ActionRegistry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 stylesPaneSection.addAlternateKeys(WebInspector.ShortcutsScreen.ElementsPane lShortcuts.IncrementBy100, WebInspector.UIString("Increment by %f", 100)); 238 stylesPaneSection.addAlternateKeys(WebInspector.ShortcutsScreen.ElementsPane lShortcuts.IncrementBy100, WebInspector.UIString("Increment by %f", 100));
239 stylesPaneSection.addAlternateKeys(WebInspector.ShortcutsScreen.ElementsPane lShortcuts.DecrementBy100, WebInspector.UIString("Decrement by %f", 100)); 239 stylesPaneSection.addAlternateKeys(WebInspector.ShortcutsScreen.ElementsPane lShortcuts.DecrementBy100, WebInspector.UIString("Decrement by %f", 100));
240 240
241 stylesPaneSection.addAlternateKeys(WebInspector.ShortcutsScreen.ElementsPane lShortcuts.IncrementBy01, WebInspector.UIString("Increment by %f", 0.1)); 241 stylesPaneSection.addAlternateKeys(WebInspector.ShortcutsScreen.ElementsPane lShortcuts.IncrementBy01, WebInspector.UIString("Increment by %f", 0.1));
242 stylesPaneSection.addAlternateKeys(WebInspector.ShortcutsScreen.ElementsPane lShortcuts.DecrementBy01, WebInspector.UIString("Decrement by %f", 0.1)); 242 stylesPaneSection.addAlternateKeys(WebInspector.ShortcutsScreen.ElementsPane lShortcuts.DecrementBy01, WebInspector.UIString("Decrement by %f", 0.1));
243 243
244 244
245 // Debugger 245 // Debugger
246 var section = WebInspector.shortcutsScreen.section(WebInspector.UIString("De bugger")); 246 var section = WebInspector.shortcutsScreen.section(WebInspector.UIString("De bugger"));
247 247
248 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("debugger.toggle-pause"), WebInspector.UIString("Pause/Continue")); 248 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("debugger.toggle-pause"), WebInspector.UIString("Pause/ Continue"));
249 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. StepOver, WebInspector.UIString("Step over")); 249 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("debugger.step-over"), WebInspector.UIString("Step over"));
250 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. StepInto, WebInspector.UIString("Step into")); 250 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("debugger.step-into"), WebInspector.UIString("Step into"));
251 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. StepOut, WebInspector.UIString("Step out")); 251 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("debugger.step-out"), WebInspector.UIString("Step out"));
252 if (Runtime.experiments.isEnabled("stepIntoAsync")) 252 if (Runtime.experiments.isEnabled("stepIntoAsync"))
253 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortc uts.StepIntoAsync, WebInspector.UIString("Step into async")); 253 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescripto rsForAction("debugger.step-into"), WebInspector.UIString("Step into"));
254 254
255 var nextAndPrevFrameKeys = WebInspector.ShortcutsScreen.SourcesPanelShortcut s.NextCallFrame.concat(WebInspector.ShortcutsScreen.SourcesPanelShortcuts.PrevCa llFrame); 255 var nextAndPrevFrameKeys = WebInspector.ShortcutsScreen.SourcesPanelShortcut s.NextCallFrame.concat(WebInspector.ShortcutsScreen.SourcesPanelShortcuts.PrevCa llFrame);
256 section.addRelatedKeys(nextAndPrevFrameKeys, WebInspector.UIString("Next/pre vious call frame")); 256 section.addRelatedKeys(nextAndPrevFrameKeys, WebInspector.UIString("Next/pre vious call frame"));
257 257
258 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. EvaluateSelectionInConsole, WebInspector.UIString("Evaluate selection in console ")); 258 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. EvaluateSelectionInConsole, WebInspector.UIString("Evaluate selection in console "));
259 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. AddSelectionToWatch, WebInspector.UIString("Add selection to watch")); 259 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. AddSelectionToWatch, WebInspector.UIString("Add selection to watch"));
260 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. ToggleBreakpoint, WebInspector.UIString("Toggle breakpoint")); 260 section.addAlternateKeys(WebInspector.ShortcutsScreen.SourcesPanelShortcuts. ToggleBreakpoint, WebInspector.UIString("Toggle breakpoint"));
261 261
262 // Editing 262 // Editing
263 section = WebInspector.shortcutsScreen.section(WebInspector.UIString("Text E ditor")); 263 section = WebInspector.shortcutsScreen.section(WebInspector.UIString("Text E ditor"));
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Down, WebInspector.KeyboardShortcut.Modifiers.Alt) 400 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Down, WebInspector.KeyboardShortcut.Modifiers.Alt)
401 ], 401 ],
402 402
403 IncreaseCSSUnitByTen: [ 403 IncreaseCSSUnitByTen: [
404 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.PageUp, WebInspector.KeyboardShortcut.Modifiers.Alt) 404 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.PageUp, WebInspector.KeyboardShortcut.Modifiers.Alt)
405 ], 405 ],
406 406
407 DecreaseCSSUnitByTen: [ 407 DecreaseCSSUnitByTen: [
408 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.PageDown, WebInspector.KeyboardShortcut.Modifiers.Alt) 408 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.PageDown, WebInspector.KeyboardShortcut.Modifiers.Alt)
409 ], 409 ],
410
411 RunSnippet: [
412 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Enter, WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta)
413 ],
414
415 StepOver: [
416 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.F10),
417 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.SingleQuote, WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta)
418 ],
419
420 StepInto: [
421 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.F11),
422 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Semicolon, WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta)
423 ],
424
425 StepOut: [
426 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.F11, WebInspector.KeyboardShortcut.Modifiers.Shift),
427 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Semicolon, WebInspector.KeyboardShortcut.Modifiers.Shift | WebInspector. KeyboardShortcut.Modifiers.CtrlOrMeta)
428 ],
429
430 StepIntoAsync: [
431 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.F11, WebInspector.KeyboardShortcut.Modifiers.Alt),
432 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Semicolon, WebInspector.KeyboardShortcut.Modifiers.Alt | WebInspector.Ke yboardShortcut.Modifiers.CtrlOrMeta)
433 ],
434
435 EvaluateSelectionInConsole: [ 410 EvaluateSelectionInConsole: [
436 WebInspector.KeyboardShortcut.makeDescriptor("e", WebInspector.KeyboardS hortcut.Modifiers.Shift | WebInspector.KeyboardShortcut.Modifiers.Ctrl) 411 WebInspector.KeyboardShortcut.makeDescriptor("e", WebInspector.KeyboardS hortcut.Modifiers.Shift | WebInspector.KeyboardShortcut.Modifiers.Ctrl)
437 ], 412 ],
438 413
439 AddSelectionToWatch: [ 414 AddSelectionToWatch: [
440 WebInspector.KeyboardShortcut.makeDescriptor("a", WebInspector.KeyboardS hortcut.Modifiers.Shift | WebInspector.KeyboardShortcut.Modifiers.Ctrl) 415 WebInspector.KeyboardShortcut.makeDescriptor("a", WebInspector.KeyboardS hortcut.Modifiers.Shift | WebInspector.KeyboardShortcut.Modifiers.Ctrl)
441 ], 416 ],
442 417
443 GoToMember: [ 418 GoToMember: [
444 WebInspector.KeyboardShortcut.makeDescriptor("p", WebInspector.KeyboardS hortcut.Modifiers.CtrlOrMeta | WebInspector.KeyboardShortcut.Modifiers.Shift) 419 WebInspector.KeyboardShortcut.makeDescriptor("p", WebInspector.KeyboardS hortcut.Modifiers.CtrlOrMeta | WebInspector.KeyboardShortcut.Modifiers.Shift)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 Left: [ 528 Left: [
554 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Left), 529 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Left),
555 WebInspector.KeyboardShortcut.makeDescriptor("a") 530 WebInspector.KeyboardShortcut.makeDescriptor("a")
556 ], 531 ],
557 532
558 Right: [ 533 Right: [
559 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Right), 534 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Right),
560 WebInspector.KeyboardShortcut.makeDescriptor("d") 535 WebInspector.KeyboardShortcut.makeDescriptor("d")
561 ] 536 ]
562 } 537 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | Source/devtools/front_end/sources/SourcesPanel.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698