Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Chrome keyboard shortcuts cannot be overridden with Javascript?

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?

like image 890
Slbox Avatar asked Sep 09 '25 11:09

Slbox


1 Answers

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.

like image 124
Micah Avatar answered Sep 11 '25 02:09

Micah