From 9d34f28f52fc6a16444a16ec2e1f2b1938034206 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 1 Jul 2014 14:24:43 +0800 Subject: fixes typo --- src/ZYZPhoneticEditor.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc index 092af4f..3faa59d 100644 --- a/src/ZYZPhoneticEditor.cc +++ b/src/ZYZPhoneticEditor.cc @@ -140,7 +140,7 @@ PhoneticEditor::processFunctionKey (guint keyval, guint keycode, return TRUE; default: - return TRUE; + return FALSE; } } @@ -172,11 +172,12 @@ PhoneticEditor::processShowCandidateKey (guint keyval, guint keycode, case IBUS_Up: case IBUS_KP_Up: + m_lookup_table.clear (); m_input_state = STATE_INPUT; break; default: - return TRUE; + return FALSE; } } @@ -231,11 +232,11 @@ PhoneticEditor::processCandidateKey (guint keyval, guint keycode, if (found != std::string::npos) { /* found. */ selectCandidateInPage (found); m_input_state = STATE_INPUT; + return TRUE; } - return TRUE; } - return TRUE; + return FALSE; } gboolean -- cgit