mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #484] how to remove [List] left and right key event? #350
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#350
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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.KeyRightortcell.KeyLeft.With function
SetInputCaptureon the list primitive.@4781121 commented on GitHub (Aug 17, 2020):
think you, fix it.