When using the console view prompt, many a times developers end up entering some code snippet and then decide to erase it to something else. This shortcut provides a way to quickly clear the prompt. Patch follows.
Created attachment 189669 [details] Patch
Comment on attachment 189669 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=189669&action=review > Source/WebCore/inspector/front-end/ConsoleView.js:592 > + var shortcutC = shortcut.makeDescriptor("c", WebInspector.KeyboardShortcut.Modifiers.Ctrl); Ctrl-C is already bound to copy selected text. Redefining common shortcut doesn't sound good. BTM, cleaning prompt with Ctrl-A then Delete or Backspace seems to be rather convenient.
Comment on attachment 189669 [details] Patch I think "Ctrl/Cmd + A, then Delete" and "Enter" are two shortcuts that already exist for that. Overriding Ctrl+C's default behavior is also weird.
(In reply to comment #3) > (From update of attachment 189669 [details]) > I think "Ctrl/Cmd + A, then Delete" and "Enter" are two shortcuts that already exist for that. > Overriding Ctrl+C's default behavior is also weird. Ah I missed to notice that "C" is used for copy. The reason I added the shortcut for clearing the prompt is to make the console view in sync with the most of the terminals(bash etc.) as they provide "Ctrl+C" to clear the prompt.