New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 672876 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

RTL tabstrip: Cmd+[ and Cmd+] switch tabs backwards vs. the UI

Project Member Reported by sdy@chromium.org, Dec 9 2016

Issue description

Chrome Version: 57.0.2946.0
OS: 10.12.1

What steps will reproduce the problem?
(1) Launch Chrome in RTL mode.
(2) Make some tabs.
(3) Switch tabs with Cmd+[ and Cmd+]

What is the expected result?
Each command should switch tabs in a direction that is visually consistent with the keyboard layout, like in LTR.

What happens instead?
Cmd+] moves in a trailing direction (which is now left) and Cmd+[ moves in a leading direction (right).

Compare with Safari. Ctrl+Tab and Ctrl+Shift+Tab should continue to work as they do now.
 

Comment 1 by sdy@chromium.org, Dec 9 2016

Summary: RTL tabstrip: Cmd+[ and Cmd+] switch tabs backwards vs. the UI (was: RTL tabstrip: Cmd+{[/]) switch tabs are backwards vs. the UI)

Comment 2 by lgrey@chromium.org, Dec 9 2016

Cc: rpop@chromium.org
+rpop@

I wonder if we should switch to Ctrl-Tab and Ctrl-Shift-Tab as the hotkeys shown in the menu (seems like we also support these.) This would be more consistent with both Windows/Linux Chrome and Safari.

My concern with making the Command-Option-arrow hotkeys follow the arrow is that they're called "Next tab" and "Previous tab", so you're violating one expectation or another either way.

Comment 3 by rpop@chromium.org, Dec 9 2016

What if we made the arrow commands visually consistent, and made their names consistent with RTL as well? "Next tab" should be the left direction, and "Previous" the right direction.

It seems to be a convention to show cmd shortcuts in Mac menus, rather than the cross-platform consistent ones. 

Comment 4 by lgrey@chromium.org, Dec 12 2016

Uploaded Safari screenshot for reference.

Re: switching the key command names, I'm curious if changing key command semantics based on directionality is idiomatic. Unfortunately the HIG is no help.
Screen Shot 2016-12-12 at 10.15.06 AM.png
10.6 KB View Download

Comment 5 by rpop@chromium.org, Dec 12 2016

Thanks for sharing that. In that case, showing the ctrl shortcuts is fine with me.

Comment 6 by lgrey@chromium.org, Dec 12 2016

Would we need to go through any kind of UX review to make this change?

Comment 7 by rpop@chromium.org, Dec 12 2016

We'll include this when we go for UI review of the RTL changes as a whole - this will need to happen before we enable on beta.

Comment 8 by shrike@chromium.org, Jan 25 2017

Cc: lgrey@chromium.org shrike@chromium.org
Owner: a...@chromium.org
Assigning to avi@ for Q1 Mac work.

Comment 9 by a...@chromium.org, Feb 8 2017

FYI, command+option+arrow keys are backwards in the same way.

Comment 10 by a...@chromium.org, Feb 16 2017

The question that I have re comment 4 is that switching the shortcuts from being arrow based to being tab based wouldn't be RTL-only, so relying on the UX review for RTL mode might not be possible.

Comment 11 by a...@chromium.org, Feb 16 2017

I'm researching, and finding lots of interesting things here.

First, in accelerators_cocoa.mm, there are mappings for command+option+arrows that are ignored because they are menu shortcuts, and the menu shortcut matching happens first. However, if you remove the shortcuts from the menu, the mappings in accelerators_cocoa.mm do *not* kick in! They seem to be ignored. Have not figured that one out yet.

Second, there are { } in global_keyboard_shortcuts_cocoa_mac.mm. Those are AFAIK for French and German keyboard layouts, so I'm not worrying about them. Do we need to worry about RTL there?

Third, there is mirror cleanup happening in global_keyboard_shortcuts_mac.mm, where in an RTL system, we un-mirrored [] characters to cope with our LTR-only app. Now that we're adding RTL mode, we might need to take that out. Having an RTL tester is likely going to be  a requirement here.

Comment 12 by rpop@chromium.org, Feb 16 2017

Ok, let's bring the question there now - let's follow up in email.

Comment 13 by a...@chromium.org, Feb 28 2017

Cc: a...@chromium.org
Owner: lgrey@chromium.org
Giving back to Leonard.
Labels: Hotlist-UITriageDeferred
Cc: viswa.karala@chromium.org
Labels: Hotlist-DesktopUIChecked
**UI mass Triage**

Tested the issue on latest chrome canary# 72.0.3622.0 using Mac with steps mentioned below:
1) Launched chrome reported version in RTL mode(able to see tabs from right to left)
2) Opened few tabs and pressed Cmd+[ and cmd+], observed page navigated between current page and previous page instead of switching between the tabs.

Adding appropriate labels to it and let us know if this issue still needs any further action.
Cc: kkaluri@chromium.org erikc...@chromium.org
 Issue 891244  has been merged into this issue.

Sign in to add a comment