Input a very long Chinese sentence into a textarea. (You can copy the following)
这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文
Then put your cursor to the beginning of the sentence, then press <kbd>space</kbd>.
You will see the whole line moved to the next line, but I expect it the spaces and Chinese sentence is in the same line, like:
这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文
It seems JavaFx treat the whole Chinese sentence as a single word, which is not correct, it should treat each Chinese character a single word.
You can use any JavaFX textarea to reproduce this issue
这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文
Then put your cursor to the beginning of the sentence, then press <kbd>space</kbd>.
You will see the whole line moved to the next line, but I expect it the spaces and Chinese sentence is in the same line, like:
这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文,这是一行很长的中文
It seems JavaFx treat the whole Chinese sentence as a single word, which is not correct, it should treat each Chinese character a single word.
You can use any JavaFX textarea to reproduce this issue