3 ms·
> Apps that hook the arrow keys should always check for whether shift/alt/ctrl/meta keys are also down, to avoid trampling on people's keyboard shortcuts. The
by JoshTriplett 10y ago
> Apps that hook the arrow keys should always check for whether shift/alt/ctrl/meta keys are also down, to avoid trampling on people's keyboard shortcuts.
The majority of pages shouldn't intercept up/down either, because that breaks the ability to scroll the page. Only pages that will never involve scrolling (such as whole-screen web apps or games) should do that.
Left/right can be OK, as long as you never expect your page to need horizontal scrolling.