Skip to content

Commit

Permalink
Make Engine#process_key_event return False if the pre-edit buffer is …
Browse files Browse the repository at this point in the history
…empty.
  • Loading branch information
ueno committed Aug 31, 2010
1 parent 1160c6e commit 4513cb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/engine.py
Expand Up @@ -306,7 +306,13 @@ def process_key_event(self, keyval, keycode, state):
gobject.idle_add(self.__skk.usrdict.save,
priority = gobject.PRIORITY_LOW)
self.__update()
return True
# In case that the pre-edit buffer is empty and the key is
# backspace or cursor movement keys, leave the processing to
# the application. See
# http://github.com/ueno/ibus-skk/issues/#issue/5
if len(self.__skk.preedit) == 0:
return False
return True

def __invalidate(self):
Expand Down

0 comments on commit 4513cb5

Please sign in to comment.