[GH-ISSUE #773] Clicking on a List does not return focus to the list #566

Closed
opened 2026-03-04 01:06:04 +03:00 by kerem · 1 comment
Owner

Originally created by @rcurrier666 on GitHub (Nov 25, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/773

Clicking on a List attached to a Flex does not cause the list to get focus. Mouse scrolling does. It looks like there should be a "setFocus(l)" near line 716 ("consumed = true") in list.go.

Originally created by @rcurrier666 on GitHub (Nov 25, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/773 Clicking on a List attached to a Flex does not cause the list to get focus. Mouse scrolling does. It looks like there should be a "setFocus(l)" near line 716 ("consumed = true") in list.go.
kerem closed this issue 2026-03-04 01:06:04 +03:00
Author
Owner

@rivo commented on GitHub (Nov 28, 2022):

You're right. setFocus() was in the wrong place. Thanks!

<!-- gh-comment-id:1328710984 --> @rivo commented on GitHub (Nov 28, 2022): You're right. `setFocus()` was in the wrong place. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#566
No description provided.