问题
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.
Is there a comprehensive list of overridable vs non-overridable Chrome shortcuts? If so, I cannot find it.
来源:https://stackoverflow.com/questions/44998250/list-of-chrome-keyboard-shortcuts-that-you-cannot-override-with-javascript