Details
Description
ADDITIONAL SYSTEM INFORMATION :
All systems
A DESCRIPTION OF THE PROBLEM :
As of OpenJFX 22, newlines/linebreaks in prompt texts for all TextInputControls (TextField and TextArea) are automatically stripped out.
https://github.com/openjdk/jfx/blob/ca04c87d307c36591162af8cd6298ede17812834/modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java#L323
(Sidenote: The automatic stripping also currently causes exeptions when prompt texts with newlines are bound - reported under internal review ID : 9077238).
Stripping newlines might be sensible for the single-line TextField, however for multi-line TextAreas, this seems like an unnecessary limitation.
On certain OSs, e.g. Windows, it may be possible to use e.g. "\r" (carriage return) as a workaround. This is not possible on e.g. Linux.
Enhancement request: Multi-line prompt texts should be supported for TextArea.
All systems
A DESCRIPTION OF THE PROBLEM :
As of OpenJFX 22, newlines/linebreaks in prompt texts for all TextInputControls (TextField and TextArea) are automatically stripped out.
https://github.com/openjdk/jfx/blob/ca04c87d307c36591162af8cd6298ede17812834/modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java#L323
(Sidenote: The automatic stripping also currently causes exeptions when prompt texts with newlines are bound - reported under internal review ID : 9077238).
Stripping newlines might be sensible for the single-line TextField, however for multi-line TextAreas, this seems like an unnecessary limitation.
On certain OSs, e.g. Windows, it may be possible to use e.g. "\r" (carriage return) as a workaround. This is not possible on e.g. Linux.
Enhancement request: Multi-line prompt texts should be supported for TextArea.
Attachments
Issue Links
- relates to
-
JDK-8335587 TextInputControl: Binding prompt text that contains linebreak causes exception
-
- Open
-