Skip to content

Commit 640dad6

Browse files
authored
menu: Fix input method key event handling (#13317)
When typing something into the search box, key events should be propagated to the input method. Fixes: linuxmint/mint22.3-beta#60
1 parent 8ee9248 commit 640dad6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,11 @@ class CinnamonMenuApplet extends Applet.TextIconApplet {
17251725
return Clutter.EVENT_STOP;
17261726
}
17271727

1728+
if (this.searchEntryText.has_preedit()) {
1729+
// There is an uncommitted text in the search box, let the input method to handle this.
1730+
return Clutter.EVENT_PROPAGATE;
1731+
}
1732+
17281733
let ctrlKey = modifierState & Clutter.ModifierType.CONTROL_MASK;
17291734

17301735
// If a context menu is open, hijack keyboard navigation and concentrate on the context menu.

0 commit comments

Comments
 (0)