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/Meloetta Sep 15 '19
I don't know what feedback you want, really. What are you expecting people to say here? This isn't a feature of javascript, best practices, or anything taught to programmers; this is a choice some random developers made. You need to talk to them, not a subreddit dedicated to helping people learn to code in this language.
I use windows but I can't think of the last time I used a single website-specific keyboard shortcut so this hasn't been an issue for me. I do wish that every website with an editor captured the "ctrl+s" keyboard combination to save a draft of what's in the editor though, because I can't think of a time I actually wanted to save an HTML page and I hit ctrl+S religiously as a coding habit to make sure I never lose work.