Repository :
http://git.fedorahosted.org/git/?p=ibus-typing-booster.git
On branch : master
---------------------------------------------------------------
commit 9e3c953efe975289e2ea9a9db4b5a7aa00833c10
Author: Mike FABIAN <mfabian(a)redhat.com>
Date: Tue Dec 15 13:29:35 2015 +0100
Don���t use MOD1 (left Alt key) to select a candidate to delete anymore
The left Alt key will be needed for input for some input methods.
For example, ta-lk-renganathan.mim has stuff like:
((A-4) "���")
---------------------------------------------------------------
ibus-typing-booster/engine/hunspell_table.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/ibus-typing-booster/engine/hunspell_table.py
b/ibus-typing-booster/engine/hunspell_table.py
index 2924ba4..a77321f 100644
--- a/ibus-typing-booster/engine/hunspell_table.py
+++ b/ibus-typing-booster/engine/hunspell_table.py
@@ -941,9 +941,7 @@ class tabengine (IBus.Engine):
self._update_ui()
return True
if (key.val >= 32
- and (not (key.state & (
- IBus.ModifierType.MOD1_MASK
- | IBus.ModifierType.CONTROL_MASK)))):
+ and (not (key.state & IBus.ModifierType.CONTROL_MASK))):
typed_character = IBus.keyval_to_unicode(key.val)
# If the first character typed is a character which is
# very unlikely to be part of a word
@@ -1061,8 +1059,7 @@ class tabengine (IBus.Engine):
if key.val >= IBus.KEY_F1 and key.val <= IBus.KEY_F9:
index = key.val - IBus.KEY_F1
if index >= 0 and index < self._page_size:
- if (key.state & IBus.ModifierType.CONTROL_MASK
- or key.state & IBus.ModifierType.MOD1_MASK):
+ if (key.state & IBus.ModifierType.CONTROL_MASK):
# Remove the candidate from the user database
res = self._editor.remove_candidate_from_user_database(
index)