summaryrefslogtreecommitdiffstats
path: root/src/ZYZZhuyinEngine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ZYZZhuyinEngine.cc')
-rw-r--r--src/ZYZZhuyinEngine.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ZYZZhuyinEngine.cc b/src/ZYZZhuyinEngine.cc
index 3ea3405..596386d 100644
--- a/src/ZYZZhuyinEngine.cc
+++ b/src/ZYZZhuyinEngine.cc
@@ -111,6 +111,8 @@ ZhuyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
assert (FALSE);
}
+ /* after mode switch, reset all states. */
+ reset ();
return TRUE;
}