diff options
Diffstat (limited to 'src/ZYZPhoneticEditor.cc')
-rw-r--r-- | src/ZYZPhoneticEditor.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc index b4ed011..fa8ecb6 100644 --- a/src/ZYZPhoneticEditor.cc +++ b/src/ZYZPhoneticEditor.cc @@ -153,8 +153,14 @@ PhoneticEditor::processSpace (guint keyval, guint keycode, return TRUE; } - /* use space to show candidates. */ - assert (FALSE); + if (m_config.spaceShowCandidates ()) { + /* use space to show candidates. */ + prepareCandidates (); + update (); + return TRUE; + } else { + return insert (keyval, keycode, modifiers); + } } if (STATE_CANDIDATE_SHOWN == m_input_state || |