extended widget.Table cell indicator and selected cell not sync #5600
-
this is how i add new row on typedkey ->
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
One is the current focus/highlight and the other is the selection. I am guessing that you are manipulating internal state of your own table that does not update the table you have extended from. |
Beta Was this translation helpful? Give feedback.
-
I just want widget.Table.Select call should select and highlight the cell how can I achieve that ? My use case is more like spreadsheet. |
Beta Was this translation helpful? Give feedback.
The table widget, by default, follows focus changes with up/down/left/right and selects with space.
That behaviour has been removed by your overriding
TypedKey
function.To keep the builtin behaviour as well then you should call
this.Entry.TypedKey(event)
inside your custom function.