cos-archives / hgrid

[UNMAINTAINED] A Javascript-based hierarchical grid that can be used to manage and organize file/folder-like data
Apache License 2.0
23 stars 14 forks source link

multiple tabbable foci on each hgrid element #92

Open mambocab opened 10 years ago

mambocab commented 10 years ago

When pressing tab to navigate through rows in hgrid, each element has 3 points of focus, but the user gets no feedback about what they're tabbing through.

To reproduce, click an element in hgrid, then press tab many times. I'd expect each tab press to navigate to the next hgrid row, but that doesn't happen until the 4th press.

Another behavior that would make sense would be visible navigation from the expand button to the title of the hgrid row. Pressing enter when focused on the expand button would expand or contract the row, and pressing enter when focused on the title would be equivalent to clicking it if it is linked to something.

brianjgeiger commented 10 years ago

Slickgrid has a CSS element that can be used for this. I think we just have ours set to not showing it by default. I recall some weird behaviors with the rowselectionmodel when I tried to use more specific elements like that one, but it could have been a different thing.

brianjgeiger commented 10 years ago

Also, SlickGrid has an option for not having each column being its own tab target, so if only one column is editable in any way, or if none are, then we can set that option on the grid.