Using Both Tab And Arrow Keys For Keyboard Navigation
bennadel.com·4d
⌨️Vim Motions
Preview
Report Post

I must admit that, historically, when thinking about keyboard-based navigation on a website, I’ve really only considered the Tab key for moving around and the Space and Enter keys for activation. The other day, however, I noticed something very interesting on the GitHub site: the Tab key was skipping over large swaths of buttons—buttons which, it turns out, can only be accessed using the ArrowLeft and ArrowRight keys. This kind of blew my mind!

Run this demo in my JavaScript Demos project on GitHub.

View this code in my JavaScript Demos project on GitHub.

Essentially, GitHub was creating groups of buttons that could be entered a…

Similar Posts

Loading similar posts...