Safari lists all shortcuts here: https://support.apple.com/en-au/guide/safari/cpsh003/mac (I don't know if this is up to date as it says Cmd+F is to open preferences which I couldn't make happen)
I reviewed all of them. Many are irrelevant because:
- They are Safari-specific
- They are a Keyboard+Click combo (that said maybe these are relevant, but never had an issue with a website hijacking this modifier key + click)
- They are not use when a website is in focus, so a website couldn't hijack it
In the end, this is my list of keyboard shortcuts which a website should not be allowed to intercept:
Tab (Accessibility)
Option-Tab (Accessibility)
Cmd-C
Cmd-V
Ctrl-Tab / Shift-Cmd-]
Ctrl-Shift-Tab / Shift-Cmd-[
Cmd-W
Shift-Cmd-T (
Cmd-[
Cmd-]
Cmd-Plus / Cmd-Minus
Cmd-`
Shift-Cmd-T
Shift-Cmd-R
Esc (This is only while in Reader mode, may be irrelevant as I think Reader mode disables JS?)
Ctrl-Cmd-1
Most of these shortcuts reach outside the tab state to do something essential, so they should never be prevented.
As far as I can tell, it is only listeners which use e.preventDefault()
that hijack the shortcuts - e.stopPropagation()
and e.stopImmediatePropagation()
do not cause the problem.
I made a Numbers spreadsheet of all the options and put a very few comments in before thinking it's not very useful. Here it is anyways in case the list itself is useful: