summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/PYPPhoneticEditor.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/PYPPhoneticEditor.cc b/src/PYPPhoneticEditor.cc
index eaff323..00c4f64 100644
--- a/src/PYPPhoneticEditor.cc
+++ b/src/PYPPhoneticEditor.cc
@@ -91,10 +91,12 @@ PhoneticEditor::processFunctionKey (guint keyval, guint keycode, guint modifiers
if (modifiers == 0) { /* no modifiers. */
switch (keyval) {
case IBUS_Return:
- case IBUS_KP_Enter:
- commit (m_text.c_str ());
+ case IBUS_KP_Enter: {
+ Text text (m_text.c_str ());
+ commitText (text);
reset ();
return TRUE;
+ }
case IBUS_BackSpace:
removeCharBefore ();