Select/KeyTable alternative implementation

Select/KeyTable alternative implementation

sliekenssliekens Posts: 97Questions: 17Answers: 2

I'm pondering whether it is possible to replace the Select and KeyTable plugins with a unified code model that takes advantage of sequential focus navigation (tabindex navigation).

Here is a quick demo: https://jsfiddle.net/sliekens/5wvhr7o8/

The demo has a tabindex attribute on things that I want to be able to select, and some styling to make focused rows and cells stand out.

Before I go on and spend too much time on this, has anyone tried to go down this road before?

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Hi,

    I'm not aware of anyone having done this I'm afraid. Let us know how you get on if you try it though!

    Allan

  • sliekenssliekens Posts: 97Questions: 17Answers: 2
    edited February 2017

    Well I can already think of two reasons why it's impossible to get the exact same behavior:

    1. only one element can be focused at any time, so forget selecting multiple rows
    2. there is no browser API for focusing the next or previous element in the flow
This discussion has been closed.