mousetrap icon indicating copy to clipboard operation
mousetrap copied to clipboard

CTRL+ALT+Space shortcut broken in Chrome

Open aidanbiggs opened this issue 4 years ago • 7 comments

Hi,

We're currently having an issue in Chrome where using Mousetrap.bindGlobal(['ctrl+alt+space'] no longer works, when it did previously. We tested in Chrome 77-70 and it still did not work

This shortcut works on Firefox but not chrome. Changing the shortcut to CTRL+ALT+F fixes the issue but we'd like to keep our original shortcut to keep our users muscle memory

Demo here: https://codepen.io/aidanbiggs/pen/VwZRWyZ

Any help would be appreciated, thanks!

aidanbiggs avatar Sep 25 '19 10:09 aidanbiggs

We're having this too. It started after update to Chrome 77.0.3865.90 and seems to be reproducible only in windows version.

In previous Chrome version the shortcut still works, and it also works in Chrome for linux 77.0.3865.90.

UPD:

I've discovered that 'keyup' event can be used as a temporary workaround while this is getting fixed.

Mousetrap.bind('ctrl+alt+space', () => alert('works'), 'keyup');

xome4ok avatar Sep 27 '19 10:09 xome4ok

See also Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1008821

and-semakin avatar Sep 27 '19 10:09 and-semakin

Sorry to hear that it is broken in Chrome 77! I think this is the core problem, which has just been fixed for upcoming Chrome 78. Can someone please verify if latest Chrome Canary works?

mustaqahmed avatar Sep 27 '19 16:09 mustaqahmed

Just confirmed that the bug has been fixed for Chrome 78.

mustaqahmed avatar Sep 27 '19 16:09 mustaqahmed

@mustaqahmed are there plans to backport this fix to Chrome 77?

and-semakin avatar Sep 30 '19 07:09 and-semakin

Unfortunately the Chromium bug was reported a bit too late to catch 77.

mustaqahmed avatar Sep 30 '19 12:09 mustaqahmed

Anyway thank you @mustaqahmed! :) Will wait for Chrome 78 to release.

and-semakin avatar Sep 30 '19 17:09 and-semakin