diff options
author | Peng Wu <alexepico@gmail.com> | 2018-06-11 13:46:38 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-06-11 13:46:38 +0800 |
commit | 21efde045adb52ef5341b567ec0d76e06d822105 (patch) | |
tree | 164f5079fc0a7c0f5dc378ac341b4b504edf8f31 /src/PYPPinyinEngine.cc | |
parent | 7b485605d696bb96a6024d22a259336dcd16fb72 (diff) | |
download | ibus-libpinyin-21efde045adb52ef5341b567ec0d76e06d822105.tar.gz ibus-libpinyin-21efde045adb52ef5341b567ec0d76e06d822105.tar.xz ibus-libpinyin-21efde045adb52ef5341b567ec0d76e06d822105.zip |
update comments
Diffstat (limited to 'src/PYPPinyinEngine.cc')
-rw-r--r-- | src/PYPPinyinEngine.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc index d80d144..ca118b5 100644 --- a/src/PYPPinyinEngine.cc +++ b/src/PYPPinyinEngine.cc @@ -177,6 +177,12 @@ PinyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers) return FALSE; if (m_props.modeChinese ()) { + /* return from MODE_SUGGESTION to normal input. */ + if (m_input_mode == MODE_SUGGESTION) { + /* only accept input to select candidate. */ + } + + /* handle normal input. */ if (m_input_mode == MODE_INIT && (cmshm_filter (modifiers) == 0)) { const String & text = m_editors[MODE_INIT]->text (); |