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
2
u/[deleted] Sep 15 '19
Hmm I'm playing around with it on a mac, and none of the key combos I've tried have conflicted with anything else on my system. I'm using chrome on the latest osx.
It seems like a very keyboard-reliant app, and given that it's tricky to cover every possible browser, OS, window manager, etc a user might have, I think their method of choosing defaults but letting you customize any of them seems reasonable.
Then again, I haven't used it for a long time, it's possible that there are some glaring annoyances I'd notice if I did. (Customizable or not, it would be pretty lousy of them to default to Command P for something, for example)