Extended widget.Table not getting keyboard focus #5591
-
I have extended the widget.Table to handle F2 key. clicking on table select the cell but pressing F2 key not trigger the event I have to press tab key before it work
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
is extended table's canvas not getting proper focus to receive keyboard event. |
Beta Was this translation helpful? Give feedback.
-
did i forgot to implement any method ? |
Beta Was this translation helpful? Give feedback.
-
It looks like there is a bug in table that it is not focusing extended versions of itself. Try adding this to your custom table: func (t *myTable) Tapped(e *fyne.PointEvent) {
t.Table.Tapped(e)
canvas := fyne.CurrentApp().Driver().CanvasForObject(t)
if canvas != nil {
canvas.Focus(t)
}
} |
Beta Was this translation helpful? Give feedback.
-
it is working now thanks. |
Beta Was this translation helpful? Give feedback.
-
Resolved on develop, will be in next release. |
Beta Was this translation helpful? Give feedback.
It looks like there is a bug in table that it is not focusing extended versions of itself.
Try adding this to your custom table: