diff options
| author | Peng Wu <alexepico@gmail.com> | 2023-12-06 12:01:34 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2023-12-06 12:01:34 +0800 |
| commit | 48269b7667a124af29d41f2be4e21a00e2f3fa80 (patch) | |
| tree | 26bc3b0dbb2a77e6e16a7db85d45c03809d0f9c2 /src | |
| parent | fb2ace4ba4cace96e10d85970c42a7ebc04070ae (diff) | |
| download | ibus-libpinyin-48269b7667a124af29d41f2be4e21a00e2f3fa80.tar.gz ibus-libpinyin-48269b7667a124af29d41f2be4e21a00e2f3fa80.tar.xz ibus-libpinyin-48269b7667a124af29d41f2be4e21a00e2f3fa80.zip | |
Fix processAccelKeyEvent method
Diffstat (limited to 'src')
| -rw-r--r-- | src/PYPBopomofoEngine.cc | 3 | ||||
| -rw-r--r-- | src/PYPPinyinEngine.cc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/PYPBopomofoEngine.cc b/src/PYPBopomofoEngine.cc index c6e0627..0f02f23 100644 --- a/src/PYPBopomofoEngine.cc +++ b/src/PYPBopomofoEngine.cc @@ -106,7 +106,8 @@ BopomofoEngine::processAccelKeyEvent (guint keyval, guint keycode, * we will let client applications to handle release key event */ return FALSE; } else { - return TRUE; + /* Always return FALSE for the IBUS_RELEASE_MASK. */ + return FALSE; } } diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc index 8ee7a72..2e06d13 100644 --- a/src/PYPPinyinEngine.cc +++ b/src/PYPPinyinEngine.cc @@ -200,7 +200,8 @@ PinyinEngine::processAccelKeyEvent (guint keyval, guint keycode, * we will let client applications to handle release key event */ return FALSE; } else { - return TRUE; + /* Always return FALSE for the IBUS_RELEASE_MASK. */ + return FALSE; } } |
