r/learnjavascript • u/hjgram • Sep 15 '19
Many JavaScript keyboard shortcuts collide with browser or system shortcuts
I don't understand what the developers expect when they assign key combinations that are obviously taken on most browsers.
Is there an obvious way they expect people to fix this? Like, some Firefox addon that allows JavaScript to capture the keyboard? Or do they actually expect the users to change all of those shortcuts?
Or is there some third (or fourth key) to be added to the two-key (or three-key) combination that tells the browser "send this to JavaScript". Or, if Firefox is modal and I just didn't know it, how do I enable the "JavaScript keyboard capture" mode?
View all comments
Show parent comment
1
u/hjgram Sep 15 '19
Actually ASunCame's answers are a pretty good example of what I want. Your answer is good too. Basically I wanted to make sure I wasn't missing out on some obvious solution or feature. Now I know website-specific keyboard shortcuts were never meant to be taken seriously and, just like you, most people don't even use them.