From d7f415b3c079108e134216377a2145fdfaf95a0d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 23 Jan 2024 11:54:41 +0800 Subject: Fix processKeyEvent methods --- src/ZYZZhuyinEditor.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ZYZZhuyinEditor.cc') diff --git a/src/ZYZZhuyinEditor.cc b/src/ZYZZhuyinEditor.cc index 7a1e680..062c3e2 100644 --- a/src/ZYZZhuyinEditor.cc +++ b/src/ZYZZhuyinEditor.cc @@ -286,6 +286,9 @@ ZhuyinEditor::processSpace (guint keyval, guint keycode, guint modifiers) gboolean ZhuyinEditor::processKeyEvent (guint keyval, guint keycode, guint modifiers) { + if (modifiers & IBUS_MOD4_MASK) + return FALSE; + modifiers &= (IBUS_SHIFT_MASK | IBUS_CONTROL_MASK | IBUS_MOD1_MASK | -- cgit