summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-07-01 14:24:43 +0800
committerPeng Wu <alexepico@gmail.com>2014-07-01 14:24:43 +0800
commit9d34f28f52fc6a16444a16ec2e1f2b1938034206 (patch)
tree113f8b33ae931ac995c84a6da536dcf253e98a4d
parent81f6d00c8a43ae0229af0f9dfdcaa654b111ece6 (diff)
downloadibus-libzhuyin-9d34f28f52fc6a16444a16ec2e1f2b1938034206.tar.gz
ibus-libzhuyin-9d34f28f52fc6a16444a16ec2e1f2b1938034206.tar.xz
ibus-libzhuyin-9d34f28f52fc6a16444a16ec2e1f2b1938034206.zip
fixes typo
-rw-r--r--src/ZYZPhoneticEditor.cc9
1 files changed, 5 insertions, 4 deletions
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