Textinput Cursor Options and Enhancements #55
meowgorithm
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release introduces options for textinput cursor behavior and improves subtleties with cursor blinking when multiple textinputs are present.
To change the cursor behavior:
Changelog
New
CursorBlink
,CursorStatic
andCursorHide
(all of typeCursorMode
). You can set the cursor mode viatextinput
’sModel.SetCursor(CursorMode)
and get the cursor mode withModel.CursorMode() CursorMode
.Changed
textinput
’sModel.Focus()
is nowModel.Focus() tea.Cmd
. This will initiate a properly timed cursor blink when focusing on a textinput if the cursor mode is set to blink.Fixed
textinput.Blink() tea.Cmd
), textinputs can now only receive blink messages they sent. This prevents textinputs from receiving other textinputs blink messages when focus changes.Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter and The Fediverse, or right here in GitHub Discussions.
This discussion was created from the release Textinput Cursor Options and Enhancements.
Beta Was this translation helpful? Give feedback.
All reactions