diff options
-rw-r--r-- | src/PYPBopomofoEngine.cc | 2 | ||||
-rw-r--r-- | src/PYPPinyinEngine.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/PYPBopomofoEngine.cc b/src/PYPBopomofoEngine.cc index 840c51a..d13bde6 100644 --- a/src/PYPBopomofoEngine.cc +++ b/src/PYPBopomofoEngine.cc @@ -91,6 +91,8 @@ BopomofoEngine::processAccelKeyEvent (guint keyval, guint keycode, if (triggered) { if (!m_editors[MODE_INIT]->text ().empty ()) m_editors[MODE_INIT]->reset (); + if (!m_editors[MODE_SUGGESTION]->text ().empty ()) + m_editors[MODE_SUGGESTION]->reset (); m_props.toggleModeChinese (); return FALSE; } diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc index a270b3f..0d184de 100644 --- a/src/PYPPinyinEngine.cc +++ b/src/PYPPinyinEngine.cc @@ -166,6 +166,8 @@ PinyinEngine::processAccelKeyEvent (guint keyval, guint keycode, if (triggered) { if (!m_editors[MODE_INIT]->text ().empty ()) m_editors[MODE_INIT]->reset (); + if (!m_editors[MODE_SUGGESTION]->text ().empty ()) + m_editors[MODE_SUGGESTION]->reset (); m_props.toggleModeChinese (); return FALSE; } |