ai / keyux

JS library to improve keyboard UI of web apps
https://ai.github.io/keyux/
MIT License
391 stars 18 forks source link

Demo: unexpected jumping behaviour in "focus" mode #30

Closed uzurpastor closed 1 month ago

uzurpastor commented 1 month ago

OS: Fedora 40 Browser: Firefox 128.0, Chromium 126.0

The error occurs when the focus area is inside the div#menu element

ER:

AR:

Screencast: https://github.com/user-attachments/assets/1300bb0f-27db-4c6e-b561-805a87d1875d

ai commented 1 month ago

Why it should move to List2 on k?

uzurpastor commented 1 month ago

In this note said:

  1. Press a and b to show quick search inside

Expects that all keys H, A, S, L, K will work correctly inside the menu.

ai commented 1 month ago

But menu has no elements starting with k. Why k should lead to selecting list2?

uzurpastor commented 1 month ago

Hmm. I haven't found mention about this behavior in docs. Anyway, I may have misread the documentation.

As I understood, navigates to an item inside a focus group based on the first letter of the item.

If information about this behavior is really missed in docs, someone should add it.

ai commented 1 month ago

As I understood, navigates to an item inside a focus group based on the first letter of the item.

press k -> focus moves to "List2"

Yes. But k is not first letter of list2. Why on pressing k focus should go there?

uzurpastor commented 1 month ago

It should not. But before your comment, I thought otherwise.

1) Current issue is irrelevant. 2) The question related to documentation is open.

ai commented 1 month ago

Added a note to docs 787cdac

Look good?