core / makeup-prevent-scroll-keys

Prevents the browser from scrolling when accessibility keys (arrows, space, page up/down, home, end) are pressed on a widget.

Note: only use on ARIA widgets (menu, tabs, combobox, etc.) — not on regular buttons or links.

Scroll position: 0px


With scroll prevention

Focus the element and press Space, Arrow, Page Up/Down, Home, or End — scroll position should not change.

Widget (tabindex="0")


Without scroll prevention (comparison)

These elements do not use this module. A link or button will scroll on Space or arrows; a textbox uses arrow keys for cursor movement instead.

Link