mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #892] Controlling position of cursor in InputField #650
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#650
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 @paololazzari on GitHub (Sep 28, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/892
Consider:
how can I change the position of the cursor so that when I start typing it types right in the middle of the string (where X is) ?
@paololazzari commented on GitHub (Sep 29, 2023):
Thanks @digitallyserviced ,
would it be unreasonable to request that
SetCursorPosis added totview? Are there any reasons not to add this functionality?@rivo commented on GitHub (Sep 29, 2023):
I'm planning on replacing the
InputField"engine" with that ofTextAreaso we get all theTextAreafunctionality (e.g. copy+paste, selections, etc.) inInputFieldalso. When that is done, it is conceivable that I add aSetCursorPosmethod.This can take some time though. It's quite possible that one of the forks will have this before this repo does.