Repository :
http://git.fedorahosted.org/git/?p=ibus-typing-booster.git
On branch : release-1.3.0
---------------------------------------------------------------
commit 7ad1d56a46f9b85eaa4345db70cf0c506604a8b0
Author: Mike FABIAN <mfabian(a)redhat.com>
Date: Mon Dec 14 17:25:59 2015 +0100
Add some comments
---------------------------------------------------------------
ibus-typing-booster/engine/hunspell_table.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ibus-typing-booster/engine/hunspell_table.py
b/ibus-typing-booster/engine/hunspell_table.py
index d1003d4..121b944 100644
--- a/ibus-typing-booster/engine/hunspell_table.py
+++ b/ibus-typing-booster/engine/hunspell_table.py
@@ -1139,6 +1139,7 @@ class tabengine (IBus.Engine):
return True
return True
+ # These keys may trigger a commit:
if key.val in (IBus.KEY_Return, IBus.KEY_KP_Enter, IBus.KEY_space,
IBus.KEY_Right, IBus.KEY_KP_Right,
IBus.KEY_Left, IBus.KEY_KP_Left):
@@ -1229,6 +1230,14 @@ class tabengine (IBus.Engine):
self._update_ui()
return True
+ # What kind of key was this??
+ #
+ # keychar = IBus.keyval_to_unicode(key.val)
+ #
+ # returned no result. And apparently it was not handled as
+ # a select key or other special key either.
+ # So whatever this was, we cannot handle it,
+ # just pass it through to the application by returning ���False���.
return False
def do_focus_in (self):