-
Notifications
You must be signed in to change notification settings - Fork 236
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
Caret visible on non-editable code area #144
Comments
Hi Darko, posting here is OK. Caret visibility is hard-coded like this: caretVisible = caretPulse
.and(area.focusedProperty())
.and(area.editableProperty())
.and(area.disabledProperty().not()); That is, caret is visible, when
As a consequence, an area that is not editable cannot have a visible caret. |
Thanks for the swift reply Tomas. Any suggestions on how to imitate the caret? I tried adding a trailing whitespace and toggling its style with: List<String> styles = new ArrayList<String>();
syles.add("-fx-background-color: red;")
cArea.setStyle(0, 2, styles); But it does not work. Thank you |
I suppose your
Unfortunately, there is no reliable way to imitate the caret. You could create your own fork of RichTextFX and change the definition of caret visibility in the source code. If you stick to your workaround, you may want to consider using Unicode characters |
Isn't this issue fixed now? Or is it still open because there is not yet a release with it included? |
Right, thanks. |
Hi,
is it possible to make the caret visible when the code area is not enabled?
I am working on a terminal window and a visible (even blinking) caret would be great, but direct input must be disabled.
P.S. I am new to github so sorry if I am doing something wrong by posting this here...
The text was updated successfully, but these errors were encountered: