Hacker News new | ask | show | jobs
by dbbo 5349 days ago
Personally, I dislike websites that try to grab my keys. I use pentadactyl/vrome, so if the website just lists everything I need to do there as a normal hyperlink, I need only hit f+number and I'm good to go. That isn't to say that it isn't innovative or cool. It's just not up my alley. I like to let local applications manage the keyboard.
2 comments

I agree that websites should not be able to override your keys. I'm often annoyed when I press '/' in firefox, expecting quicksearch to come up, and instead the website hijacks it for their own search.

However, I don't think that this should be solved at a website level. Websites shouldn't know or care what keys do in your browser; they should simply provide reasonable shortcut keys. Browsers should make it so that their shortcut keys cannot be overridden without your explicit permission.

This is mostly the fault of insufficient Chrome addon API afaik. In Firefox/Pentadactyl the addon automatically hijacks all the keypresses and only by pressing CTRL-Z can you fall back into direct mode and feed keypress events to Javascript.