[GH-ISSUE #964] Arguments flipped/reversed in Box.SetMouseCapture #708

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

Originally created by @kivattt on GitHub (Apr 6, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/964

Application.SetMouseCapture takes in *tcell.EventMouse, MouseAction
While Box.SetMouseCapture takes in MouseAction, *tcell.EventMouse
Is this intentional?
I understand it may be too late to change now, but I wanted to document it in an issue.
I love the work you put into this project :)

Originally created by @kivattt on GitHub (Apr 6, 2024). Original GitHub issue: https://github.com/rivo/tview/issues/964 [Application.SetMouseCapture](https://pkg.go.dev/github.com/rivo/tview#Application.SetMouseCapture) takes in `*tcell.EventMouse, MouseAction` While [Box.SetMouseCapture](https://pkg.go.dev/github.com/rivo/tview#Box.SetMouseCapture) takes in `MouseAction, *tcell.EventMouse` Is this intentional? I understand it may be too late to change now, but I wanted to document it in an issue. I love the work you put into this project :)
kerem closed this issue 2026-03-04 01:07:10 +03:00
Author
Owner

@rivo commented on GitHub (Apr 7, 2025):

Didn't realize that. Yes, it was a mistake. Not intentional. Thanks for letting me know.

<!-- gh-comment-id:2782748832 --> @rivo commented on GitHub (Apr 7, 2025): Didn't realize that. Yes, it was a mistake. Not intentional. Thanks for letting me know.
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#708
No description provided.