[GH-ISSUE #484] how to remove [List] left and right key event? #350

Closed
opened 2026-03-04 01:04:14 +03:00 by kerem · 2 comments
Owner

Originally created by @4781121 on GitHub (Aug 13, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/484

i used left and right key to change [tview.Pages] page, but one page have a List, so the event conflict.
how to remove [List] left and right key event? or fix the conflict

Originally created by @4781121 on GitHub (Aug 13, 2020). Original GitHub issue: https://github.com/rivo/tview/issues/484 i used left and right key to change [tview.Pages] page, but one page have a List, so the event conflict. how to remove [List] left and right key event? or fix the conflict
kerem closed this issue 2026-03-04 01:04:14 +03:00
Author
Owner

@gnojus commented on GitHub (Aug 17, 2020):

https://github.com/rivo/tview/wiki/CustomKeys
If I understand your request correctly, you just need to return nil in case of key event being tcell.KeyRight or tcell.KeyLeft.
With function SetInputCapture on the list primitive.

<!-- gh-comment-id:674804601 --> @gnojus commented on GitHub (Aug 17, 2020): https://github.com/rivo/tview/wiki/CustomKeys If I understand your request correctly, you just need to return nil in case of key event being `tcell.KeyRight` or `tcell.KeyLeft`. With function `SetInputCapture` on the list primitive.
Author
Owner

@4781121 commented on GitHub (Aug 17, 2020):

https://github.com/rivo/tview/wiki/CustomKeys
If I understand your request correctly, you just need to return nil in case of key event being tcell.KeyRight or tcell.KeyLeft.
With function SetInputCapture on the list primitive.

think you, fix it.

<!-- gh-comment-id:674851956 --> @4781121 commented on GitHub (Aug 17, 2020): > https://github.com/rivo/tview/wiki/CustomKeys > If I understand your request correctly, you just need to return nil in case of key event being `tcell.KeyRight` or `tcell.KeyLeft`. > With function `SetInputCapture` on the list primitive. think you, fix it.
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#350
No description provided.