You can preventDefault()
on Chrome shortcuts with JavaScript, but you can't do it with all of them.
Ctrl + S and Ctrl + F you can override.
Ctrl + W you cannot. This makes sense.
Ctrl + L though I was surprised to find you also cannot override though.
What shortcuts are overridable and which aren't in Chrome?
Within Chrome, here are the non-overridable commands that I have found:
Ctrl Tab
,Ctrl-NTW
,Ctrl-W
Most 'Ctrl-Shift' keyboard shortcuts are able to be overridden now with a few exceptions:
Ctrl Shift Tab
,Ctrl-Shift-Q
Ctrl-L
is now overridable along a few other new Ctrl-Shift
shortcuts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With