Add keyboard navigation to new account selector #375

Merged
JoshAntBrown merged 1 commits from feature/hotkey-navigation into feature/add-account 2024-02-08 21:25:16 +08:00
JoshAntBrown commented 2024-02-08 18:53:46 +08:00 (Migrated from github.com)

Follows a similar pattern that I spotted in the Hey app.

Uses two separate stimulus controllers to get the job done, first one sets up a hotkey using the @github/hotkeys package, and the second is responsible for moving the focus to the next or previous link.

The buttons don't have to be hidden and could actually be moved to the footer as per the UI designs, but just wanted to focus on the keyboard navigation functionality here in a re-usable way.

Relates to #365

Follows a similar pattern that I spotted in the Hey app. Uses two separate stimulus controllers to get the job done, first one sets up a hotkey using the @github/hotkeys package, and the second is responsible for moving the focus to the next or previous link. The buttons don't have to be hidden and could actually be moved to the footer as per the UI designs, but just wanted to focus on the keyboard navigation functionality here in a re-usable way. Relates to #365
Sign in to join this conversation.