minetest/irrlicht

SDL2: Can not switch IME to English state by pressing shift key

snowyu opened this issue · 4 comments

snowyu commented
SDL2: Can not switch IME to English state by pressing shift key
snowyu commented
  1. It is not possible to allow English input inside IME(press shift key) within the SDL2 app, can switch to another IME. This can only be switched outside the application.
  2. The candidate window cannot be displayed correctly under the input box.
snowyu commented

And It seems to intercept the shift key and cannot be passed to the IME.

y5nw commented
  1. It is not possible to allow English input inside IME(press shift key) within the SDL2 app, can switch to another IME. This can only be switched outside the application.

This should be fixed by #285.

2. The candidate window cannot be displayed correctly under the input box.

This one is "fun".

I am not sure about your specific setup, but pressing the Shift key to switch the language does work for me (IBus + Intelligent Pinyin on Arch).

That said, one issue I do have that is possibly related is that my normal setup is to use Control+comma to switch between Chinese and English (*), in which case SDL (using a simple testing code) does emit the , text input event when I toggle between English/Chinese input. However, this does not seem any to affect other IM shortcuts (toggle halfwidth/fullwidth punctuation and toggle simplified/traditional variant)

(*) Note for others: Some input methods include the feature of switching between Chinese/English text input; this is different from (and not related to) the IME's feature of switching between input methods/keyboard layouts.