diff options
author | Peng Wu <alexepico@gmail.com> | 2024-01-23 11:54:41 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2024-01-23 11:54:41 +0800 |
commit | d7f415b3c079108e134216377a2145fdfaf95a0d (patch) | |
tree | 35a1a1966fdb3bf2a212ac80d6a1313e53a911c4 /src/ZYZZhuyinEditor.cc | |
parent | 60123deb96d1d27b59c0c82e4936b95a31cc40e9 (diff) | |
download | ibus-libzhuyin-d7f415b3c079108e134216377a2145fdfaf95a0d.tar.gz ibus-libzhuyin-d7f415b3c079108e134216377a2145fdfaf95a0d.tar.xz ibus-libzhuyin-d7f415b3c079108e134216377a2145fdfaf95a0d.zip |
Fix processKeyEvent methods
Diffstat (limited to 'src/ZYZZhuyinEditor.cc')
-rw-r--r-- | src/ZYZZhuyinEditor.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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 | |