mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #915] InputField in Form: Cursor is at the beginning of InputField and not movable when initial text is set #664
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#664
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 @elsni on GitHub (Nov 10, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/915
When I show a form contraining an InputField with some text, the cursor is at the beginning of the InputField an can't be moved by the arrow keys. You need to type "arrow up" first, then the cursor can be moved as expected.
I would expect that the cursor is at the end of the preset text, so it can be edited easily.
This is the code:
@rivo commented on GitHub (Nov 13, 2023):
Thanks for reporting this. The latest commit should fix this, i.e. the cursor will be initialized to be at the end of the text.