mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #103] Feature Request: Add ability to use the left and right arrow keys in inputFields #79
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#79
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 @joegrasse on GitHub (Apr 17, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/103
It would be nicer if the user could use the left and right arrow keys within a form inputField to correct mistypes.
@rivo commented on GitHub (Apr 19, 2018):
I'm giving this the "on roadmap" label. I'm planning to add this.
Can't say exactly when but hopefully soon.
@rivo commented on GitHub (Oct 18, 2018):
The latest commit introduces free movement within input fields. This was an effort of many hours, much more than what I had anticipated. The reason is mostly Unicode support, in which one character can consist of multiple runes (with modifiers, zero-width joiners etc.) and one rune can occupy multiple bytes in a string. Additionally, the width of a character can be more than one cell on the screen. All of this needs to be handled properly.
To navigate the input field, I took cues from Bash:
If you find any undesirable behaviour, please open an issue.
@joegrasse commented on GitHub (Oct 22, 2018):
Thank you very much for your work on this!