Alexey-T/CudaText

[Input Method] First keystroke with input method after in focus closes the input method box

Closed this issue · 3 comments

Version: Linux gtk2
Input method framework: fcitx
Input method: fcitx-googlepinyin

Steps to reproduce:

  1. Switch to Google Pinyin for input method
  2. Bring another window to focus
  3. Bring CudaText back to focus
  4. Press a letter key on the keyboard

Expected behavior: The result box for input method should show up and stay up with pressed key input

Current behavior: The result box for input method gets closed automatically

Demo video:

input_method_focus.mp4

@rasberryrabbit Can you look at this, pls?
maybe we need some more Ime* methods called on app deactivate/activate?

Returning to old focused window, some invalid behavier occured.
It may Lazarus keyboard event may doesn't work with it.
I cannot resolve it currently.

fixed.