summaryrefslogtreecommitdiffstats
path: root/src/PunctEditor.cc
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-05-17 09:53:55 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-05-17 09:53:55 +0800
commit90bb72d5cea0f36397d477251e89ef7e6f627ddc (patch)
tree12d2d287d1108cab1bc492bcba2e11553d96e23e /src/PunctEditor.cc
parentb46bb4bd7443dcdef7fb790fde5138b9f9f36007 (diff)
downloadibus-libpinyin-90bb72d5cea0f36397d477251e89ef7e6f627ddc.tar.gz
ibus-libpinyin-90bb72d5cea0f36397d477251e89ef7e6f627ddc.tar.xz
ibus-libpinyin-90bb72d5cea0f36397d477251e89ef7e6f627ddc.zip
Reset PunctEditor when press Esc
Diffstat (limited to 'src/PunctEditor.cc')
-rw-r--r--src/PunctEditor.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PunctEditor.cc b/src/PunctEditor.cc
index d73b990..02958df 100644
--- a/src/PunctEditor.cc
+++ b/src/PunctEditor.cc
@@ -125,6 +125,10 @@ PunctEditor::processKeyEvent (guint keyval, guint keycode, guint modifiers)
commit ();
return TRUE;
+ case IBUS_Escape:
+ reset ();
+ return TRUE;
+
case IBUS_BackSpace:
removeCharBefore ();
return TRUE;