Skip to content

Commit

Permalink
devtools: change shortcuts for switching prompts
Browse files Browse the repository at this point in the history
As requested in #9 changed from PageUp/PageDown to CTRL+,/CTRL+.(close #9)
Later I want to add Dirac welcome console message which will explain
keyboard shortcuts to new users.
  • Loading branch information
darwin committed Jun 1, 2016
1 parent 7b88ff7 commit 457100c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/unpacked/devtools/front_end/console/ConsoleView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1059,8 +1059,8 @@ WebInspector.ConsoleView.prototype = {

if (dirac.hasREPL) {
keys = [
shortcut.makeDescriptor(shortcut.Keys.PageDown),
shortcut.makeDescriptor(shortcut.Keys.PageUp)
shortcut.makeDescriptor(shortcut.Keys.Comma, WebInspector.KeyboardShortcut.Modifiers.Ctrl),
shortcut.makeDescriptor(shortcut.Keys.Period, WebInspector.KeyboardShortcut.Modifiers.Ctrl)
];
this._shortcuts[keys[0].key] = this._selectNextPrompt.bind(this);
this._shortcuts[keys[1].key] = this._selectPrevPrompt.bind(this);
Expand Down

0 comments on commit 457100c

Please sign in to comment.