summaryrefslogtreecommitdiffstats
path: root/src/PYPBopomofoEngine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/PYPBopomofoEngine.cc')
-rw-r--r--src/PYPBopomofoEngine.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/PYPBopomofoEngine.cc b/src/PYPBopomofoEngine.cc
index e2154d1..3621f1b 100644
--- a/src/PYPBopomofoEngine.cc
+++ b/src/PYPBopomofoEngine.cc
@@ -89,8 +89,12 @@ BopomofoEngine::processAccelKeyEvent (guint keyval, guint keycode,
}
if (triggered) {
- if (!m_editors[MODE_INIT]->text ().empty ())
+ if (!m_editors[MODE_INIT]->text ().empty ()) {
+ Text text (m_editors[MODE_INIT]->text ());
+ commitText (text);
m_editors[MODE_INIT]->reset ();
+ }
+
if (!m_editors[MODE_SUGGESTION]->text ().empty ())
m_editors[MODE_SUGGESTION]->reset ();
m_props.toggleModeChinese ();