You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't know if this is a CodeMirror 6 problem or a Google Chrome problem, but...
We have registered a custom keybinding for Ctrl/Cmd + Shift + / (aka Ctrl/Cmd + ?) with preventDefault set to true and it seems to be working everywhere and on every device, except for Google Chrome on macOS, where the default is not prevented, and the Chrome help menu opens up (which uses the same keybinding), while the custom action we've defined does not run. Other browsers have this same default behaviour but the default is prevented fine, even on Chrome on Windows, and our custom action we've defined does run.
I know that Chrome does in fact prevent some of their default key bindings to be overridden but there is no official list, and nowhere in any of their docs do they have any information regarding the Ctrl/Cmd + Shift + / keybinding at all. Either way, its weird that on Chrome on Windows there is no problem, but there is on macOS.
The text was updated successfully, but these errors were encountered:
It's indeed possible that Chrome doesn't allow you to override this key combination. Does the same problem occur outside of CodeMirror? If so, I'd say it's not really something that CodeMirror can help.
Don't know if this is a CodeMirror 6 problem or a Google Chrome problem, but...
We have registered a custom keybinding for
Ctrl/Cmd + Shift + /
(akaCtrl/Cmd + ?
) withpreventDefault
set totrue
and it seems to be working everywhere and on every device, except for Google Chrome on macOS, where the default is not prevented, and the Chrome help menu opens up (which uses the same keybinding), while the custom action we've defined does not run. Other browsers have this same default behaviour but the default is prevented fine, even on Chrome on Windows, and our custom action we've defined does run.I know that Chrome does in fact prevent some of their default key bindings to be overridden but there is no official list, and nowhere in any of their docs do they have any information regarding the
Ctrl/Cmd + Shift + /
keybinding at all. Either way, its weird that on Chrome on Windows there is no problem, but there is on macOS.The text was updated successfully, but these errors were encountered: