Skip to content

Fix input method support for CJK languages in menu search and run dialog #13029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

chaeya
Copy link

@chaeya chaeya commented Aug 9, 2025

This commit implements proper input method (IME) support that was missing since the Clutter API migration in Cinnamon 5.0+. The original inputMethod.js file created during the 2021 API transition contained only empty method stubs, causing input method frameworks (ibus, fcitx, nimf, kime, xim, etc.) to fail in menu search boxes and Alt+F2 run dialogs.

Changes:

  • Implement GTK IMMulticontext integration for universal IME support
  • Add Clutter to GDK event conversion for proper key event handling
  • Implement preedit text display and management for composition
  • Add proper focus handling and input method state management
  • Set up client window and cursor location for IME positioning

Fixes multiple long-standing issues:

  • Menu search box not accepting CJK input (Korean, Japanese, Chinese)
  • Alt+F2 run dialog not supporting input method switching
  • All major Linux input method frameworks affected

Closes: #11115, #11610, #11713
Tested-by: HamoniKR team with Korean input (nimf, ibus, fcitx)

This commit implements proper input method (IME) support that was missing
since the Clutter API migration in Cinnamon 5.0+. The original inputMethod.js
file created during the 2021 API transition contained only empty method stubs,
causing input method frameworks (ibus, fcitx, nimf, kime, xim, etc.) to fail
in menu search boxes and Alt+F2 run dialogs.

Changes:
- Implement GTK IMMulticontext integration for universal IME support
- Add Clutter to GDK event conversion for proper key event handling
- Implement preedit text display and management for composition
- Add proper focus handling and input method state management
- Set up client window and cursor location for IME positioning

Fixes multiple long-standing issues:
- Menu search box not accepting CJK input (Korean, Japanese, Chinese)
- Alt+F2 run dialog not supporting input method switching
- All major Linux input method frameworks affected

Closes: linuxmint#11115, linuxmint#11610, linuxmint#11713
Tested-by: HamoniKR team with Korean input (nimf, ibus, fcitx)
@mtwebster
Copy link
Member

Hi thanks for this, but there is already a pending pull request (along with related changes in other packages). Testing welcome!

#12758

@mtwebster mtwebster closed this Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Can't change language in startmenu searchbar
2 participants