You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying out a few solutions to moving focus with keyboard navigation
let me know if you had any thoughts on the right solution to this
My initial proof of concept was to store ActiveCell : { cell: 0, row: 0 } in state and then pass this down
didnt feel that neat, but the bulk of the approach can be seen here: adazzle@15edb33
and its designed from an excel-style grid point of view, so wont cope with multiple selections, etc (though shouldn't be hard to extend that)
Also - for mouse selection of a cell, this will require the click handler to be aware of the row and cell indexes, and then pass this upto the owner of the grid state. So maybe a neater approach would be for the state of selection to be owned within a selection controller?
The issue there that stopped em going down that path is that you would probably want to do a few of the following:
mark a cell / row to indicate it is selected
do things in other controller with selected cell(s)/row(s), such as copy and paste, editors, etc
We need to implement row selection controllers which would allow different models for selecting rows in a grid.
Features we want (these can be ended up in different row selection controllers implementations though):
Shift
keyEsc
keyThe text was updated successfully, but these errors were encountered: