commit 50692ab9599c3845bc9f29cb0516ee78b6b0eda0 Author: Yuwei Yu 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: