summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2024-01-26 10:52:20 +0800
committerPeng Wu <alexepico@gmail.com>2024-01-26 10:52:20 +0800
commit5fe4e0f08cf1bf4199900d35383eacee197c08a7 (patch)
tree62de05a18a330310bb7b77cc0e90455ad1a545bc
parentcf33a2c289f7676a36954bdcf700a9d0086d6886 (diff)
downloadibus-libpinyin-5fe4e0f08cf1bf4199900d35383eacee197c08a7.tar.gz
ibus-libpinyin-5fe4e0f08cf1bf4199900d35383eacee197c08a7.tar.xz
ibus-libpinyin-5fe4e0f08cf1bf4199900d35383eacee197c08a7.zip
Fix processKeyEvent method
-rw-r--r--src/PYPBopomofoEditor.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc
index 3d13c77..1e03b12 100644
--- a/src/PYPBopomofoEditor.cc
+++ b/src/PYPBopomofoEditor.cc
@@ -191,6 +191,9 @@ gboolean
BopomofoEditor::processKeyEvent (guint keyval, guint keycode,
guint modifiers)
{
+ if (modifiers & IBUS_MOD4_MASK)
+ return FALSE;
+
modifiers &= (IBUS_SHIFT_MASK |
IBUS_CONTROL_MASK |
IBUS_MOD1_MASK |