3 ms·
The space key is also used modally, to scroll the page down. This creates an issue on some web games and video players: If the game/player element is not focuse
by TheCoreh 13y ago
The space key is also used modally, to scroll the page down. This creates an issue on some web games and video players: If the game/player element is not focused, and space is pressed (with the intention of pausing/playing the video, or making the game character jump) the page will scroll down.
Some websites, like Github and Facebook also use input keys modally. I'll very often trigger some UI function by mistake when starting to type a message if the text field is not focused for some reason.
- martin-adams 13y agoThe arrow keys also do the same. And scroll is modal in that a scrolling content area gets the scroll first, but when it reaches the end, the parent then gets it (i.e. the page).
- commandar 13y agoThe arrow keys are explicitly navigation keys. I specified text input keys for a reason. I had overlooked space; probably because the behavior is non-destructive.