<i18n dev> RFR: 8258805: Japanese characters not entered by mouse click on Windows 10

Ichiroh Takiguchi itakiguchi at openjdk.java.net
Wed Jan 20 05:21:48 UTC 2021


On Tue, 19 Jan 2021 16:31:58 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:

>>> > Fix:
>>> > It is necessary to take care of unconfirmed composition string once the IME is going to be disabled.
>>> 
>>> The fix commits the unconfirmed composition string. Committing is better than discarding. Is it possible to preserve the 
>> state and to leave the string uncommitted?
>> 
>> The fix reverts the previous (correct) behaviour back. It is unnecessary to store the state and keep the string. That activity may be quite complicated and requires additional resources especially if there are several components with active IME
>
> Hello Dmitry.
> Sorry, I should use GitHub instead of mailing list.
> I tested your fix, I saw side effect by committing preedit string.
> I'll give you detail information.

I tried attached testcase.
import java.awt.*;
import java.awt.event.*;

public class AWTTextTest1 extends Frame {
    AWTTextTest1() {
        setTitle("AWTTextTest1");
        setLayout(new GridLayout(0, 1));
        add(new TextField());
        add(new TextField());
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent we) {
                System.exit(0);
            }
        });
        setSize(400, 300);
        setVisible(true);
    }
    public static void main(String[] args) {
        new AWTTextTest1();
    }
}
1. Start testcase
2. Click upper TextField, turn on IME, type some character (In case of Japanese, type "aiu")
3. Click lower TextField, preedit string is committed into lower TextField.

Without the fix, preedit string was canceled by above operation.

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

PR: https://git.openjdk.java.net/jdk/pull/2142


More information about the i18n-dev mailing list