Never neglect your tabs when it comes to usability again! Making
tabindex easy for custom elements to improve your UX.
tabindex on any property, but you need additional functionality for it to do anything useful. That's where Tabby becomes useful! By emitting two custom events when tabbing occurs, you can define the behaviour with ease.
Install with npm:
npm install tabby-js
.addEventListener('tabEnter')) or the jQuery way (
tabEnterEmitted when an element with a `tabindex` attribute has focus with the tab key – allowing you to highlight the element, or to open your faux-select.
tabLeaveEmitted irrespective of whether the tab key was involved (an alias of `onblur`) – allowing you to reset the element's state.
// Emitted when a user tabs into the box.elements;// Emitted each and every time (same as onblur).elements;
I'd be over the moon for contributions for any of my projects – including of course Tabby! If you would like to contribute, please fork and issue a pull request and I'll happily merge it in to master.