Skip to content

Extended widget.Table not getting keyboard focus #5591

Closed Answered by andydotxyz
heejit asked this question in Q&A
Discussion options

You must be logged in to vote

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)
	}
}

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by heejit
Comment options

You must be logged in to vote
1 reply
@andydotxyz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants