Cmd (⌘) modifier triggers extensions keyboard shortcuts bound to the Ctrl (^) key in the URL bar
Reported by
alf...@xng.io,
Dec 13
|
||||
Issue descriptionUserAgent: 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
,
Dec 14
,
Dec 14
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..
,
Dec 14
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.
,
Dec 14
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!
,
Dec 14
Happy to help. :) Do let us know if you run into anything else! |
||||
►
Sign in to add a comment |
||||
Comment 1 by alf...@xng.io
, Dec 13