ibus-table/ibus-table-1.3.9.20110827-enable-non-ascii.patch
Mike FABIAN cbe00b8757 Resolves: #845798
- add ibus-table-1.3.9.20110827-add-some-keys-for-translit.patch (from Yuwei YU, upstream)
- add ibus-table-1.3.9.20110827-enable-non-ascii.patch  (from Yuwei YU, upstream)
- add ibus-table-1.3.9.20110827-uppercase-umlauts.patch to allow uppercase as well in translit
2012-09-05 10:26:41 +02:00

21 lines
780 B
Diff

commit 50692ab9599c3845bc9f29cb0516ee78b6b0eda0
Author: Yuwei Yu <acevery@gmail.com>
Date: Wed Sep 5 01:22:55 2012 +0800
fix non-ASCII input key bug
diff --git a/engine/table.py b/engine/table.py
index d5ec15f..356a7e5 100644
--- a/engine/table.py
+++ b/engine/table.py
@@ -1367,7 +1367,8 @@ class tabengine (ibus.EngineBase):
if ascii.isdigit (key.code):
self.commit_string (cond_letter_translate (unichr (key.code)))
return True
- elif key.code > 127 and (not self._editor._py_mode):
+ elif key.code > 127 and ( unichr(key.code) not in self._valid_input_chars ) \
+ and(not self._editor._py_mode):
return False
if key.code == keysyms.Escape: