-
Notifications
You must be signed in to change notification settings - Fork 12
Todo
Some thoughts on what to do next with ng-keyboard
- Improve documentation.
kb-reached-end: Event when trying to go beyond the last item.
kb-reached-begin: Event when trying to go before the first item.
kb-list-cyclic: Jump from the last item to the first and vice-versa.
(detectable by pressing in the opposite direction of the previous/next)
Nesting kb-list/kb-item. (kbItemController.listController === this)
kb-focus: Setting and reading focus.
kb-grid: Navigate to closest kb-item.
Convert checkLocation into getDistance()
kb-group: Split navigation into logical groups.
Use object notation when multiple kb directives are on an element:
<div kb-list kb-item="i1" kb-group="{list:'g1', item: 'g2'}">...</div>
kb-modal: Prevent keyboard focus to elements outside this element. http://www.smashingmagazine.com/2014/09/15/making-modal-windows-better-for-everyone/
BkListController._locate() start searching outwards from last found index.
- Tabs example.
- Carousel example.
- Paged example.