summaryrefslogtreecommitdiffstats
path: root/src/PYPFullPinyinEditor.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2024-01-30 17:37:51 +0800
committerPeng Wu <alexepico@gmail.com>2024-01-30 17:37:51 +0800
commitf91bbc04cd0ac0651575c8964e8ed6fc585eafe2 (patch)
tree6ccdbe48c958800f19a623bca11eb3059891a58a /src/PYPFullPinyinEditor.cc
parent5fe4e0f08cf1bf4199900d35383eacee197c08a7 (diff)
downloadibus-libpinyin-f91bbc04cd0ac0651575c8964e8ed6fc585eafe2.tar.gz
ibus-libpinyin-f91bbc04cd0ac0651575c8964e8ed6fc585eafe2.tar.xz
ibus-libpinyin-f91bbc04cd0ac0651575c8964e8ed6fc585eafe2.zip
Fix processKeyEvent methods again
Diffstat (limited to 'src/PYPFullPinyinEditor.cc')
-rw-r--r--src/PYPFullPinyinEditor.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PYPFullPinyinEditor.cc b/src/PYPFullPinyinEditor.cc
index 0c6bf3e..bd41572 100644
--- a/src/PYPFullPinyinEditor.cc
+++ b/src/PYPFullPinyinEditor.cc
@@ -70,6 +70,9 @@ FullPinyinEditor::processKeyEvent (guint keyval,
guint keycode,
guint modifiers)
{
+ if (modifiers & IBUS_MOD4_MASK)
+ return FALSE;
+
/* handle 'A' - 'Z' key */
if (G_UNLIKELY (IBUS_A <= keyval && keyval <= IBUS_Z)) {
if (cmshm_filter (modifiers) == 0) {