Skip to content

Add in a focus-ring type. #52

@museun

Description

@museun

This should take in a list of ids and an option for whether it should wrap, along with the keybindings for forward and reverse.

This type should allow nesting.
So in the hypothetical following:

let first = ring([a, b, c];
let second = ring([d, e, f];
ring([first, second]);

The focus index starts at a in the first ring and when it reaches c instead of wrapping back to a it'll continue to d. But when it reaches f in the second ring it should wrap back to a in the first ring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions