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

Sergey Bylokhov serb at openjdk.java.net
Wed Jan 20 05:46:51 UTC 2021


On Wed, 20 Jan 2021 05:19:15 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:

>> 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.

How do the native components work in that case like awt textarea or external apps like notepad?

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

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


More information about the i18n-dev mailing list