mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #371] "Optional keyboard shortcuts" - List #274
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#274
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 @shilangyu on GitHub (Nov 27, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/371
The godoc in the introduction states:
However i was not able to find any info on how to get rid of the shortcuts. Im trying to make a list without these shortcuts, how could i achieve that?
@rivo commented on GitHub (Nov 27, 2019):
For
Listobjects, you define the shortcuts yourself when callingAddItem()orInsertItem(). See the documentation:So if you provide
0, there will be no such shortcut.However, the arrow keys etc. will still work. If you need to, you can also get rid of them. Please have a look at
SetInputCapture(). It works forList, too.Let me know if you have any further questions.
@shilangyu commented on GitHub (Nov 27, 2019):
Completely missed the
Set to 0 for no binding.part, thanks and sorry!@rivo commented on GitHub (Nov 28, 2019):
No problem. 😊