Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add space symbol

  • Loading branch information...
commit 7d7382e1172a9eea4c62589ea4f2d2a19a3c4a28 1 parent cc633ac
@matsuu authored
Showing with 10 additions and 0 deletions.
  1. +9 −0 engine/engine.py
  2. +1 −0  engine/tables.py
View
9 engine/engine.py
@@ -568,6 +568,15 @@ def __on_key_delete(self):
return True
def __on_key_space(self):
+ if self.__input_mode == INPUT_MODE_WIDE_LATIN:
+ # Input Wide Latin chars
+ char = unichr(keysyms.space)
+ wide_char = symbol_rule.get(char, None)
+ if wide_char == None:
+ wide_char = ibus.unichar_half_to_full(char)
+ self.__commit_string(wide_char)
+ return True
+
if self.__preedit_ja_string.is_empty():
return False
View
1  engine/tables.py
@@ -228,6 +228,7 @@
symbol_rule = {
# symbols
+ u" " : u" ",
u"," : u"",
u"." : u"",
u"!" : u"",
Please sign in to comment.
Something went wrong with that request. Please try again.