Bug 149844 - Web Inspector: Keyboard Shortcut ⌘⇧[ on non-english keyboards
Summary: Web Inspector: Keyboard Shortcut ⌘⇧[ on non-english keyboards
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All OS X 10.10
: P2 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-10-06 08:48 PDT by Niklas
Modified: 2017-04-20 14:24 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas 2015-10-06 08:48:16 PDT
I arrived here from https://www.webkit.org/blog/4038/web-inspector-keyboard-shortcuts/

Because there is no [ key on some keyboard layouts modifier keys need to be pressed and this interferes with the keyboard shortcuts. E.g. on my Swedish keyboard to make the character '[' I need to press ⌥ and 8 in effect making ⌘⇧[ into ⌘⌥8 but that does not work unfortunately.
Comment 1 Radar WebKit Bug Importer 2015-10-06 08:49:02 PDT
<rdar://problem/22991113>
Comment 2 Joseph Pecoraro 2015-10-06 11:29:21 PDT
⌘⇧] and ⌘⇧[ is actually more commonly shown as ⌘} and ⌘{. Do those key combinations work for you? Perhaps we should update the article.
Comment 3 Joseph Pecoraro 2015-10-06 11:31:12 PDT
(In reply to comment #2)
> ⌘⇧] and ⌘⇧[ is actually more commonly shown as ⌘} and ⌘{. Do those key
> combinations work for you? Perhaps we should update the article.

That said, the keyboard combination actually requires Shift, even if a Brace is pressed:

> WebInspector.KeyboardShortcut.Modifier.CommandOrControl | WebInspector.KeyboardShortcut.Modifier.Shift, WebInspector.KeyboardShortcut.Key.RightCurlyBrace

So maybe we need to relax the Web Inspector code here.
Comment 4 Alexey Proskuryakov 2015-10-06 11:54:39 PDT
As far as I know, brackets and curly braces should not be used in keyboard shortcuts because of their positioning on French keyboards (cf. <rdar://problem/5775865>).

With many other keyboard layouts like Swedish or German, curly braces are closer together, but poorly discoverable, because they are not embossed on key caps, and can only be typed with the Option key.
Comment 5 Joseph Pecoraro 2015-10-06 13:00:50 PDT
(In reply to comment #4)
> As far as I know, brackets and curly braces should not be used in keyboard
> shortcuts because of their positioning on French keyboards (cf.
> <rdar://problem/5775865>).
> 
> With many other keyboard layouts like Swedish or German, curly braces are
> closer together, but poorly discoverable, because they are not embossed on
> key caps, and can only be typed with the Option key.

This may be one reason why Terminal.app, Safari.app, and WebInspector all support multiple keyboard shortcuts to switch tabs.

The complete list that I know of for Safari and Web Inspector are:

    Ctrl+Tab         Shift+Ctrl+Tab
    Cmd+}            Cmd+{
    Shift+Cmd+Right  Shift+Cmd+Left
Comment 6 Niklas 2015-10-06 20:52:40 PDT
> […] Do those key combinations work for you?

I have tried all combinations I can think of (including ⌘⌥8 and ⌘⌥⇧8) but not found a working set unless I switch keyboard layout.
Comment 7 Nikita Vasilyev 2016-02-16 20:37:58 PST
(In reply to comment #6)
> > […] Do those key combinations work for you?
> 
> I have tried all combinations I can think of (including ⌘⌥8 and ⌘⌥⇧8) but
> not found a working set unless I switch keyboard layout.

Have you tried Ctrl+Tab and Shift+Ctrl+Tab?
Did it not work? Those should work with all keyboard layouts.
Comment 8 Niklas 2016-02-16 22:38:33 PST
(In reply to comment #7)
> (In reply to comment #6)
> > > […] Do those key combinations work for you?
> > 
> > I have tried all combinations I can think of (including ⌘⌥8 and ⌘⌥⇧8) but
> > not found a working set unless I switch keyboard layout.
> 
> Have you tried Ctrl+Tab and Shift+Ctrl+Tab?
> Did it not work? Those should work with all keyboard layouts.

Ctrl+Tab and Shift+Ctrl+Tab switches regular browser tabs even with the web inspector open and focus set in the web inspector.
Comment 9 Timothy Hatcher 2016-02-17 07:16:57 PST
None of the tab switching shortcuts work when docked currently, Safari always wins (we have another bug about that). If Ctrl-Tab works when the Inspector is windowed, then we can close this bug. The Ctrl-Tab shortcuts are the preferred tab switching shortcuts on OS X now because they are more universal across various international keyboards compared to the older shortcuts.
Comment 10 Niklas 2016-02-17 07:46:57 PST
(In reply to comment #9)
> None of the tab switching shortcuts work when docked currently, Safari
> always wins (we have another bug about that). If Ctrl-Tab works when the
> Inspector is windowed, then we can close this bug. The Ctrl-Tab shortcuts
> are the preferred tab switching shortcuts on OS X now because they are more
> universal across various international keyboards compared to the older
> shortcuts.

Unfortunately the keyboard shortcuts does not work when windowed either.
Comment 11 BJ Burg 2017-04-20 14:24:20 PDT
This behaves as expected when windowed with Swedish system language and Swedish input source. It doesn't work when docked and the Safari window has tabs, due to an existing bug. Closing now.