Skip to content

Multi-line TextEntry widget does not show 'no_write' cursor #3502

Description

@rjwills28

I found an issue with the TextEntry widget when it is disabled/no_write. If the 'Multi-Line' property is true for this widget, then the no_write cursor (red 'x') does not show when you hover over the disabled widget. Instead it just appears on the border of the widget, which is not very obvious.
See below where it does not appear when hovering over the main body of the widget (but does on the border)

Image Image

This is because a TextArea is used to display a multi-line text entry widget. Setting the cursor for this node sets it for the ScrollPane only, hence is only shows around the borders (see discussion: https://stackoverflow.com/questions/25629938/javafx-textarea-setcursor-not-working/25630584#25630584).
Following advice from this post (https://stackoverflow.com/questions/56628369/javafx-change-cursor-in-textarea/56630506), it looks like the cursor needs to be set for the content of the TextArea.

PR with this fix is on its way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions