New issue
Advanced search Search tips

Issue 914881 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 14
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Cmd (⌘) modifier triggers extensions keyboard shortcuts bound to the Ctrl (^) key in the URL bar

Reported by alf...@xng.io, Dec 13

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce the problem:
1. Create an extension that registers keyboard shortcuts using the `chrome.commands` API
2. Set an extension keyboard shortcut to Ctrl+C
3. Focus the URL bar on a target page (must not be the new tab page)
4. Press the keyboard combination Cmd+C

What is the expected behavior?
The custom command bound to Ctrl+C is not executed, and the native Cmd+C handler is executed

What went wrong?
The custom command is executed

WebStore page: 

Did this work before? Yes Before #views-browser-windows

Chrome version: 73.0.3639.0  Channel: canary
OS Version: OS X 10.13.6
Flash Version: 

I am re-opening  Issue 881599  as I can still reproduce the issue in the latest canary
 
chrome-73-ctrl-cmd-conflict.mov
13.0 MB View Download
sample-collision.zip
18.9 KB Download
I filed this under Extensions because the issue was surfaced by Extensions keyboard shortcuts, but the previous issue was labelled with IO>Keyboard and Internals>Views
Labels: Needs-Triage-M73 Needs-Bisect
Cc: susan.boorgula@chromium.org
Labels: -Needs-Bisect -Type-Bug-Regression Triaged-ET Target-73 M-73 FoundIn-71 FoundIn-73 FoundIn-72 Type-Bug
Status: Untriaged (was: Unconfirmed)
alfred@ Thanks for the issue.

Able to reproduce this issue on Mac OS 10.13.6 on the latest Stable 71.0.3578.80 and latest Canary 73.0.3640.0.
This behavior is seen on #67.0.3381.0 from where MacViews was enabled as per  issue 881599 .

Hence this is a Non-Regression issue and marking this as Untriaged for further updates from Dev.

Thanks..
Cc: rdevlin....@chromium.org
Status: WontFix (was: Untriaged)
This is WAI, and is documented here: https://developer.chrome.com/extensions/commands.  Basically, on Mac, we convert "Ctrl" to "Command"; to specify "Ctrl" on a Mac you must specify "MacCtrl".

I agree that this is confusing, but, at this point, it's unlikely to change.
Ahh, thanks for pointing that out rdevlin@, I wasn't aware! This solves my issue here.

On a side note, part of my confusion likely came from the fact that you can't set a MacCtrl keyboard shortcut in the "Keyboard shortcuts" section of chrome://extensions... but that's definitely another issue, and a smaller one.

Thanks again!
Happy to help. :)  Do let us know if you run into anything else!

Sign in to add a comment