Community
Participate
Working Groups
Build Identifier: version 3.735 If a StyledText widget has an opened IME candidate list, the input string is also shown in the widget itself – it only can be meant to be a preview since it's not yet confirmed by the VerifyKeyListener/VerifyListener. In this state, the StyledText's method getText() returns that (possibly invalid) input string. PS: I didn't check it on other platforms. Reproducible: Always Steps to Reproduce: 1. start the snippet 2. change to a locale with IMEs (Chinese/Japanese) 3. type in something to open a candidate list 4. move the mouse over the StyledInput widget to cause getText() method call
Created attachment 209365 [details] Snippet: StyledTextWithIME.java
Created attachment 209366 [details] Screen capture: StyledTextWithIME
indeed, the preedit string is in the text model during composition, and is returned by getText(). Note that when the preedit string is commit it is send for verify before being permanently insert into the text buffer. if the composition is cancel the preedit string is removed from the buffer. how is the current behavior causing you trouble ?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag.