Get the latest tech news

Tab Roving – focus management for element groups


Personal website of Niklas Gadermann.

If you're on a desktop or tablet using a mouse, trackpad or touchscreen, you're in luck: Just click the cell you want to target (in this case number 29) and you're done. Then, while our single element has focus, we can track arrow key presses and move the tab index to the adjacent inputs. In general, the technique described here can be used in lots of situations where you want to avoid unnecessarily focusing too many elements that can be thought of as a group.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Tab Roving

Tab Roving

Photo of focus management

focus management

Photo of element groups

element groups