Open yoursantu opened 1 year ago
Hey there, since the component already supports tabbing to navigate between cells, it will be a good idea to support arrows internally as well. I will look into it and keep you posted.
I will label this issue as a new enhancement.
Thanks
Hi there, Thank you for your response, Yeah, the component already has forward navigation with Tab, and Enter keys, but when the user wants to navigate back to previous, then have to use mouse to focus it. So this enhancement will be very useful.
Thank you.
Hi, I found a small UX issue when implementing the arrow functionality. The user will not be able to interact with elements that requires the keyboard arrows like a dropdown or input number. For example, if the user is trying to select different items in the select menu using arrow up and down, it won't work because the arrows will navigate to the next row. Similarly with the input number when trying to increment and decrement a value.
The only way around this is to change how selecting and navigating works all together, it should more or less behave like an excel sheet. The user can navigate using arrows but when trying to modify a cell, they need to click enter. When they're in edit mode, the arrows will not change cell location until clicking escape.
Hi, I am trying to add Arrow key support navigate between editable cells. I have added one more parameter in handleKeyDown() function that now supporting ArrowRight key perfectly.
For ArrowLeft key support i have added one more else if statement. This allowed me to only navigate left within the row.
And i also want to add ArrowUp and ArrowDown key support. ArrowUp key should navigate previous cell of same column and ArrowDown key should navigate next row of same column.
Please help me.
Thank you