diff options
| author | Peng Huang <shawn.p.huang@gmail.com> | 2010-05-17 09:53:55 +0800 |
|---|---|---|
| committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-05-17 09:53:55 +0800 |
| commit | 90bb72d5cea0f36397d477251e89ef7e6f627ddc (patch) | |
| tree | 12d2d287d1108cab1bc492bcba2e11553d96e23e /src/PunctEditor.cc | |
| parent | b46bb4bd7443dcdef7fb790fde5138b9f9f36007 (diff) | |
| download | ibus-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.cc | 4 |
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; |
