Hacker News new | ask | show | jobs
by bovine3dom 2542 days ago
We have a thing in Tridactyl for this, actually ("blacklistkeys" if you're a user).

You roll your own by writing a userscript (e.g. Tampermonkey) that adds an event listener to keydown which runs key.cancelBubble = true and key.stopPropagation(). See line 343 https://github.com/tridactyl/tridactyl/blob/master/src/conte... (starts "leavegithubalone").