argyleink / roving-ux

stateful roving index for web ui
130 stars 7 forks source link

Add up and down keys #5

Closed kunukn closed 3 years ago

kunukn commented 3 years ago

I have a use case where I want to use the up and down keys for the previous and next focus.

API usage example

rovingIndex({
  element: document.querySelector('#vertical-accordions'),
  target: '.toggle'
})
argyleink commented 3 years ago

build updated https://github.com/argyleink/roving-ux/releases/tag/v1.0.1