Skip to content

Question: disabling new line functionality (pressing return) #763

@SkyAphid

Description

@SkyAphid

I'm using a InclineCssTextArea as a basic field, but the problem is the new line functionality doesn't seem customizable. I know I can just use TextField, but one of the reasons why I chose RichTextFX is because it can handle special characters like heart symbols automatically if the font doesn't have them by default. So I don't have any choice but to use your text areas.

capture

To summarize, how do I prevent being able to press enter and start a new line on a text area like this? It needs to remain in one line forever. I already have setWrapText(false) on the area.

I saw this, but I was wondering if any progress had been made on it, or if you guys can make a workaround. I really need the special character handling of RichTextFX, so there's not an alternative for me unless I remove that functionality, which is very bad because my software is for video games, which tend to need those characters for creative reasons. I'm okay with something like overriding the button listener to disable it, or something equally hacky like that for now until you guys make a proper system for it.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions