RESOLVED FIXED 158579
Web Inspector: Support Command-P for quick open
https://bugs.webkit.org/show_bug.cgi?id=158579
Summary Web Inspector: Support Command-P for quick open
Timothy Hatcher
Reported 2016-06-09 13:52:04 PDT
To match Chrome Dev Tools, we should support Command-P. This is a stupid shortcut, since Command-P is normally Print. But I have seen some users on Twitter not know we supported Quick Open because the shortcut was different.
Attachments
Patch (1.95 KB, patch)
2016-06-09 15:29 PDT, Nikita Vasilyev
no flags
Nikita Vasilyev
Comment 1 2016-06-09 13:54:42 PDT
Command-P also matches Sublime Text and Atom, which is probably why Chrome DevTools chose to use it.
Radar WebKit Bug Importer
Comment 2 2016-06-09 13:57:02 PDT
Radar WebKit Bug Importer
Comment 3 2016-06-09 13:57:51 PDT
Nikita Vasilyev
Comment 4 2016-06-09 15:29:04 PDT
Nikita Vasilyev
Comment 5 2016-06-09 15:32:45 PDT
View in context: https://bugs.webkit.org/attachment.cgi?id=280957&action=review > Source/WebInspectorUI/UserInterface/Base/Main.js:261 > this.openResourceKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.Command | WebInspector.KeyboardShortcut.Modifier.Shift, "O", this._showOpenResourceDialog.bind(this)); This property is never used, not even in tests. Why do we use it? Same goes for many other WebInspector._*Shortcut properties.
WebKit Commit Bot
Comment 6 2016-06-09 15:54:22 PDT
Comment on attachment 280957 [details] Patch Clearing flags on attachment: 280957 Committed r201891: <http://trac.webkit.org/changeset/201891>
WebKit Commit Bot
Comment 7 2016-06-09 15:54:25 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 8 2016-06-09 19:33:49 PDT
Comment on attachment 280957 [details] Patch Isn’t command-P usually Print?
Blaze Burg
Comment 9 2016-06-09 19:46:53 PDT
(In reply to comment #8) > Comment on attachment 280957 [details] > Patch > > Isn’t command-P usually Print? That is often the case, but not always. Previously it was not bound to anything for the Web Inspector window. Xcode and Instruments do not bind it to anything. I don't think there is anything to print in the inspector window itself. I don't like to use such a prime shortcut that conflicts with Print, but our hands are a bit tied since we don't have our own menu bar / key equivalents that can be targeted by Keyboard pref pane's App Shortcuts. So we have to do what the user is going to expect, which due to Sublime Text's precedent, is command palette or quick open.
Note You need to log in before you can comment on or make changes to this bug.