Intercept Shortcuts
-
Hmm, seems to work for some websites and not for others
For example, isn't working for me on Google Docs (docs disabled Ctrl+S as a way of showing that it saves automatically
)
On YouTube, it disabled most single-key shortcuts, but for some reason 'F' wasn't. (I don't actually need 'F', just an example)
-
@legobuilder26 Good find, I noticed
F
on youtube myself. Hard to tell why it doesn’t get blocked, because the script triggers on keydown. It’s very reliable on most other pages though, haven’t found further examples. Don’t use google docs myself, doesctrl-s
trigger there? Anyway that’s all google related it seems… -
@luetage Ctrl+S does nothing when on a Google Doc, because Google wants to brag about their autosave I guess. The userscript does not change this behavior.
-
@legobuilder26 Google should never receive the shortcut and therefore
ctrl-s
should work as browser shortcut. Albeit it may be that Google’s script to irrevocably block the shortcut triggers sooner than this userscript. In my opinion it would best, if Vivaldi had some inbuilt functionality to kill all website shortcuts. The browser and therefore the enduser should have the decision, not some stupid website.