From 5f2bc9276b6c00b9efa804cbfadb25ffd54294b7 Mon Sep 17 00:00:00 2001 From: rlbxku1r <32811754+rlbxku1r@users.noreply.github.com> Date: Sun, 28 Dec 2025 00:17:13 +0900 Subject: [PATCH] menu: Fix input method key event handling When typing something into the search box, key events should be propagated to the input method. Fixes: linuxmint/mint22.3-beta#60 --- files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js b/files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js index 17ba09a4f2..bb59781f99 100644 --- a/files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js +++ b/files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js @@ -1718,6 +1718,11 @@ class CinnamonMenuApplet extends Applet.TextIconApplet { return Clutter.EVENT_STOP; } + if (this.searchEntryText.has_preedit()) { + // There is an uncommitted text in the search box, let the input method to handle this. + return Clutter.EVENT_PROPAGATE; + } + let ctrlKey = modifierState & Clutter.ModifierType.CONTROL_MASK; // If a context menu is open, hijack keyboard navigation and concentrate on the context menu.