Permalink
Browse files

Don't handle any ASCII input in latin mode

  • Loading branch information...
1 parent cf6bba8 commit 3f030366e0ad89dbad0a1af77de1164b5f238aa3 @iRi-E committed Sep 4, 2010
Showing with 3 additions and 4 deletions.
  1. +3 −4 engine/engine.py
View
@@ -1243,9 +1243,7 @@ def __on_key_common(self, keyval, state=0):
if self.__input_mode == INPUT_MODE_LATIN:
# Input Latin chars
- char = unichr(keyval)
- self.__commit_string(char)
- return True
+ return False
elif self.__input_mode == INPUT_MODE_WIDE_LATIN:
# Input Wide Latin chars
@@ -1848,7 +1846,8 @@ def __cmd_insert_half_space(self, keyval, state):
if not self._chk_mode('0'):
return False
- if not self.__preedit_ja_string.is_empty():
+ if (not self.__preedit_ja_string.is_empty() or
+ keyval == keysyms.space and state == 0):
return False
self.__commit_string(unichr(keysyms.space))
return True

0 comments on commit 3f03036

Please sign in to comment.