Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.
bfanger edited this page Sep 17, 2014 · 5 revisions

Some thoughts on what to do next with ng-keyboard

General

  • Improve documentation.

Features

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/

Optimizations

BkListController._locate() start searching outwards from last found index.

New examples

  • Tabs example.
  • Carousel example.
  • Paged example.
Clone this wiki locally