diff options
author | Peng Wu <alexepico@gmail.com> | 2018-06-06 16:11:45 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-06-06 16:11:45 +0800 |
commit | de688e73654da6a7ace797f35e34275daa4980d3 (patch) | |
tree | 5391763239a3b599b696bfddeea60663dfe2be57 /src/PYPBopomofoEditor.cc | |
parent | 927d3e23a6b8ee30b26b9fe8203c5fc4e56baf52 (diff) | |
download | ibus-libpinyin-de688e73654da6a7ace797f35e34275daa4980d3.tar.gz ibus-libpinyin-de688e73654da6a7ace797f35e34275daa4980d3.tar.xz ibus-libpinyin-de688e73654da6a7ace797f35e34275daa4980d3.zip |
re-factor selectCandidate method
Diffstat (limited to 'src/PYPBopomofoEditor.cc')
-rw-r--r-- | src/PYPBopomofoEditor.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc index dd19fa7..599d195 100644 --- a/src/PYPBopomofoEditor.cc +++ b/src/PYPBopomofoEditor.cc @@ -219,8 +219,10 @@ BopomofoEditor::processKeyEvent (guint keyval, guint keycode, if (m_config.enterKey ()) commit (); - else - PhoneticEditor::commit (m_text.c_str ()); + else { + Text text (m_text.c_str ()); + commitText (text); + } reset (); return TRUE; |