diff options
| author | Peng Huang <shawn.p.huang@gmail.com> | 2010-01-01 19:18:22 +0800 |
|---|---|---|
| committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-01-01 19:18:22 +0800 |
| commit | ee861c1028911ab2bee572dd27dfab8d6408604f (patch) | |
| tree | 1a07eb44376f13329449495bdb02f7cfdff75806 /src | |
| parent | 001c65de561863bf73fc1a34092d437bfe897d15 (diff) | |
| download | ibus-libpinyin-ee861c1028911ab2bee572dd27dfab8d6408604f.tar.gz ibus-libpinyin-ee861c1028911ab2bee572dd27dfab8d6408604f.tar.xz ibus-libpinyin-ee861c1028911ab2bee572dd27dfab8d6408604f.zip | |
Ignore number key if with some modifiers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/PinyinEngine.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PinyinEngine.cc b/src/PinyinEngine.cc index 9efd3c2..a9c980b 100644 --- a/src/PinyinEngine.cc +++ b/src/PinyinEngine.cc @@ -190,6 +190,8 @@ PinyinEngine::processNumber (guint keyval, guint keycode, guint modifiers) /* English mode */ if (G_UNLIKELY (!m_mode_chinese)) { + if (G_UNLIKELY (CMSHM_FILTER (modifiers) != 0)) + return FALSE; commit ((gunichar) m_mode_full ? HalfFullConverter::toFull (ch) : ch); return TRUE; } |
