Microsoft Hangul IME doesn't work if it's selected before starting a Gtk app in MSYS2.
Steps to reproduce
- Install an MSYS2/Mingw32 environment on Windows 10.
- If necessary add Korean as a language in Settings>Region & Language
- From the language icon on the task bar select the Korean input method.
- From an MSYS2 terminal window start gtk3-demo and select Entry>Entry Buffer. Toggle to Hangul with the taskbar button.
- Type the string "ehdgo anfrhk qorentksdl akfmrh ekfgehfhr gkssladl qhdngktk". Notice that as one types the pre-edit is selected and so only the last Hangul character typed before the space is committed.
- Quit gtk3-demo and select the English input method from the task bar icon.
- Start gtk3-demo and start Entry>Entry Buffer
- Select the Korean input method and toggle to Hangul with the taskbar buttons.
- Type the same string. Notice that the Hangul characters are not selected as they're recognized and that each is committed.
MSYS2/Mingw32 is distributed by a package manager with rolling releases. Gtk-3.24.0-1 and Gtk-3.22.29-1 ehibit this behavior. Microsoft Windows™ 10 or 7.
The first image shows the shortened Hangul string that results when the Korean IME is already selected when gtk3-demo starts:
This image shows the correct Hangul string that one gets when one starts gtk3-demo with the English IME enabled and then switches to the Korean IME:
Edited by John Ralls