-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextArea
should (optionally?) hide its cursor when it doesn't have focus
#3722
Labels
Comments
davep
added a commit
to davep/textual-sandbox
that referenced
this issue
Nov 22, 2023
I think this is probably a good idea. Darren is working on a refactor of TextArea. Will talk to @darrenburns when he's back |
Merged
I've covered this off in #4074. |
If you didn't want to hide the cursor when blurred, presumably it would be simple enough to inherit and just override a method or two? |
@TomJGooding You should be able to do: def watch_has_focus(self, value: bool) -> None:
super().watch_has_focus(value)
self._cursor_visible = True |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Especially when building an input dialog, it would be natural to include
Input
andTextArea
for different types of input, and so then also natural to want to style them in the same way in respect to focus. For example:This mostly works except for the fact that
TextArea
keeps a cursor showing (albeit one that doesn't flash when there is no focus).Screen.Recording.2023-11-22.at.09.20.43.mov
I feel we should make it so that the cursor isn't visible when the
TextArea
doesn't have focus.See also #3405
The text was updated successfully, but these errors were encountered: