Bug 127896 - Web Inspector: Implement open/close Console window shortcut
Summary: Web Inspector: Implement open/close Console window shortcut
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-01-30 00:48 PST by Diego Pino
Modified: 2014-01-30 09:50 PST (History)
5 users (show)

See Also:


Attachments
Patch (4.33 KB, patch)
2014-01-30 00:56 PST, Diego Pino
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Pino 2014-01-30 00:48:15 PST
Console toolbar button tooltip (Option + Command + C) doesn't work. How to reproduce:

   * Open the Web Inspector.
   * Press Option + Command + C.

Expected result: The console window opens up (or closes if it was opened).
Actual result: The console window doesn't open.

The problem is that the shortcut tooltip is shown but its operation is not implemented.
Comment 1 Radar WebKit Bug Importer 2014-01-30 00:48:30 PST
<rdar://problem/15944643>
Comment 2 Diego Pino 2014-01-30 00:56:06 PST
Created attachment 222641 [details]
Patch
Comment 3 Timothy Hatcher 2014-01-30 08:18:42 PST
Comment on attachment 222641 [details]
Patch

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

> Source/WebInspectorUI/UserInterface/KeyboardShortcut.js:183
> +            result += InspectorFrontendHost.platform() === "mac" ? "\u2325" : "\u2387";

Arn't these the same symbol?
Comment 4 Timothy Hatcher 2014-01-30 08:19:13 PST
Comment on attachment 222641 [details]
Patch

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

>> Source/WebInspectorUI/UserInterface/KeyboardShortcut.js:183
>> +            result += InspectorFrontendHost.platform() === "mac" ? "\u2325" : "\u2387";
> 
> Arn't these the same symbol?

I guess on Mac they might be, but not on other platforms.
Comment 5 Diego Pino 2014-01-30 08:49:25 PST
Comment on attachment 222641 [details]
Patch

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

>>> Source/WebInspectorUI/UserInterface/KeyboardShortcut.js:183
>>> +            result += InspectorFrontendHost.platform() === "mac" ? "\u2325" : "\u2387";
>> 
>> Arn't these the same symbol?
> 
> I guess on Mac they might be, but not on other platforms.

\u2325 is the 'Option' key symbol (http://en.wikipedia.org/wiki/Option_key)
\u2387 is the 'Alternative' key symbol (http://en.wikipedia.org/wiki/Alt_key)

In Mac the 'Option' key (which is also labeled as 'Alt' I think) has always the '\u2325' symbol printed on the key. In no mac keyboards, the equivalent of the 'Option' key is the 'Alt' key, and although it has no symbol printed on it I think it's better to print the correspondent Unicode symbol for the 'Alt' key. As a matter of fact, the first time I checked the shortcuts I could understand the symbols for Shift and Control, but as for the Option or Command key (Mac key) symbols I had to figure out what keys were those.
Comment 6 WebKit Commit Bot 2014-01-30 09:50:02 PST
Comment on attachment 222641 [details]
Patch

Clearing flags on attachment: 222641

Committed r163086: <http://trac.webkit.org/changeset/163086>
Comment 7 WebKit Commit Bot 2014-01-30 09:50:04 PST
All reviewed patches have been landed.  Closing bug.