Minor Textinput Updates
This is a minor PR that improves the textinput API and behavior when dealing with masked input, such as passwords.
Changed
SetCursor(int)
,CursorStart()
andCursorEnd()
no longer return values.- If
EchoMode
is notEchoNormal
word-to-word movement instead jumps to the beginning and end. Word-based deletion also deletes to the beginning and end.
New
Cursor() int
returns the cursor position.
Removed
- Removed
Cursor string
, which did absolutely nothing.
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter and The Fediverse, or right here in GitHub Discussions.