PermalinkThis file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersThis file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2009-11-20 Joseph Pecoraro <email@example.com>
Reviewed by Timothy Hatcher. Web Inspector: Support Ctrl+P and Ctrl+N, Readline keyboard shortcuts in the Console https://bugs.webkit.org/show_bug.cgi?id=31400 Handle the following when on a Mac: Ctrl+P = Previous (like Up arrow) Ctrl+N = Next (like Down arrow) No longer rerun autocompletion when just pushing a modifier key like Control, Alt, Shift, or Meta. Improved arrow key behavior with Multiline code in the Console, with the following behavior: Up = Previous Command if on First Line (caret moves to the end of the first line) otherwise default caret movement in text. Down = Next Command if on Last Line (caret naturally moves to the end) otherwise default caret movement in text. * inspector/front-end/TextPrompt.js: (WebInspector.TextPrompt.prototype.handleKeyEvent): handle new keyboard shortcuts (WebInspector.TextPrompt.prototype.isCaretOnFirstLine): check if the caret is on the top line (WebInspector.TextPrompt.prototype.isCaretOnLastLine): check if the caret is on the bottom line (WebInspector.TextPrompt.prototype._upKeyPressed): (WebInspector.TextPrompt.prototype._downKeyPressed): (WebInspector.TextPrompt.prototype._moveBackInHistory): (WebInspector.TextPrompt.prototype._moveForwardInHistory): Canonical link: https://commits.webkit.org/42720@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing with 152 additions and 14 deletions.