On Tue, 2 Feb 2021 13:59:02 GMT, Ichiroh Takiguchi <itakigu...@openjdk.org> wrote:
>> If I got it right the problem takes place only on MacOS. I could not >> reproduce the issue on Windows. However the fix is located at common code. I >> would recommend moving it to Mac specific code. > > I checked working behavior on Mac Catalina with Japanese IME. > I tried following steps: > 1. Start KeyboardWindow from Terminal > 2. Type "abcefg" > 3. Turn on Japanese IME, type "ao" (Japanese Hiragana is displayed) > 4. Click Terminal window > 5. Click between "c" and "e" by mouse on KeyboardWindow to move caret. The > caret is moved but **preedit is not committed**. > 6. Press Space key, caret is moved to in front of Japanese "a" > > Without patch, the caret is not moved. > I think preedit should be committed or canceled by step 5. @takiguc, thanks for this scenario! Maybe, you have an idea how to flush composed text on a click? ------------- PR: https://git.openjdk.java.net/jdk/pull/2337