mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #880] tview application freezes with AddTextView form component specific configuration and keystroke capture #641
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#641
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 @WeBtOrY-ES on GitHub (Sep 4, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/880
Hi!
After injecting application and form as a parameters of a function
tview.NewApplication(),tview.NewForm()asapplication *tview.Application, form *tview.Formwhen you use this configuration of AddTextView
form.AddTextView("Server name", serverName, 20, 1, false, false)and the Esc key is pressed
(captured with this code)
application.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { k := event.Key() if k == tcell.KeyEsc { escPressed = true application.Stop() } return event })the application freezes.
However, with this configuration of AddTextView is used
form.AddTextView("Server name", serverName, 20, 1, false, true)the application behaves as it should.
I don't know if is a expected behavior or is a bug.
@uqix commented on GitHub (Jul 18, 2025):
This issue still exists, when the
ESCkey is pressed in a form, the form focuses the first item which happens to be aTextViewwithscrollableset tofalse, then the app freezes.@asimfarooq5 commented on GitHub (Nov 20, 2025):
Keyboard input freezes after repeated navigation between two tview pages that update frequently.