On Mon, 7 Apr 2025 15:14:52 GMT, Ziad El Midaoui <zelmida...@openjdk.org> wrote:

>> One thing I am curious about: I don't see a similar stripping of newlines in 
>> the text itself for TextField, and yet it does render the whole string as if 
>> the newline had been stripped. Do you know why we need to strip it from 
>> promptTextProperty explicitly and not from textProperty?
>
> @kevinrushforth 
> This is due to `TextFieldContent::insert` we have a filterInput and the 
> second parameter to strip newlines is set to true in the textField class.
> `filterInput(String txt, boolean stripNewlines, boolean stripTabs)`
> For `TextAreaContent::insert` the parameter is set to false to allow newlines.

Thanks for the explanation. I have no further comments or questions, so feel 
free to integrate when ready.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1716#discussion_r2038207513

Reply via email to