Check for scrolling with arrow keys
Author: maxkfranzCreated Jul 23, 2012Updated Jan 2, 2026
Labelsfeature
It would be nice if the library did not activate bound shortcuts that include arrow keys (up, down, left, and right) when the following conditions are met
- the focus is on a scrollable element, and
- pressing the arrow key would result in scrolling (might not be necessary).
The second criterion might not be necessary for usability reasons -- ie the user might expect that the arrow keys are always overridden in any sort of scrollable element.
Source: ccampbell/mousetrap