From ee861c1028911ab2bee572dd27dfab8d6408604f Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Fri, 1 Jan 2010 19:18:22 +0800 Subject: Ignore number key if with some modifiers. --- src/PinyinEngine.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit