Bug 148121 - Web Inspector: Allow typing command when a console message is selected
Summary: Web Inspector: Allow typing command when a console message is selected
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-08-17 22:21 PDT by Nikita Vasilyev
Modified: 2015-08-17 23:28 PDT (History)
8 users (show)

See Also:


Attachments
[Animated GIF] With the patch applied (89.72 KB, image/gif)
2015-08-17 22:21 PDT, Nikita Vasilyev
no flags Details
Patch (2.00 KB, patch)
2015-08-17 22:28 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2015-08-17 22:21:28 PDT
Created attachment 259247 [details]
[Animated GIF] With the patch applied

I've noticed a several people clicking in the middle of the console and starting typing commands. In Chrome DevTools, Firefox DevTools, and Firebug if you click once anywhere in the console, it focuses on the console prompt. In Web Inspector, if you click on a console message it selects that message. Typing commands doesn't do anything at this point.

In Terminal.app and iTerm, even if you have text selected, you can still type commands.
Comment 1 Radar WebKit Bug Importer 2015-08-17 22:21:48 PDT
<rdar://problem/22320449>
Comment 2 Nikita Vasilyev 2015-08-17 22:28:27 PDT
Created attachment 259248 [details]
Patch

I've run this patch for the past two days and now it's hard for me to go back. I think it's a big improvement.
Comment 3 Timothy Hatcher 2015-08-17 22:36:38 PDT
Comment on attachment 259248 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=259248&action=review

I agree. I did this in Colloquy too.

> Source/WebInspectorUI/UserInterface/Views/LogContentView.js:734
> +        const isCommandC = event.metaKey && event.keyCode === 99;

keyIdentifier === "C"?
Comment 4 Nikita Vasilyev 2015-08-17 22:42:21 PDT
(In reply to comment #3)
> Comment on attachment 259248 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=259248&action=review
> 
> I agree. I did this in Colloquy too.
> 
> > Source/WebInspectorUI/UserInterface/Views/LogContentView.js:734
> > +        const isCommandC = event.metaKey && event.keyCode === 99;
> 
> keyIdentifier === "C"?

It's an empty string for Command-C.
Comment 5 WebKit Commit Bot 2015-08-17 23:28:18 PDT
Comment on attachment 259248 [details]
Patch

Clearing flags on attachment: 259248

Committed r188578: <http://trac.webkit.org/changeset/188578>
Comment 6 WebKit Commit Bot 2015-08-17 23:28:22 PDT
All reviewed patches have been landed.  Closing bug.