allow input of utf8 characters in TextEditorWrapped

This commit is contained in:
Martin Kaistra 2013-01-07 14:30:27 +01:00
parent b28595a260
commit 10fd43e7af

View File

@ -781,7 +781,7 @@ class TextEditorWrapped(Widget):
def insert_char(self, c): def insert_char(self, c):
if self.upper: if self.upper:
c = c.upper() c = c.upper()
if c <= "\x7f": if c <= u"\xff":
if c == "\x08" or c == "\x7f": if c == "\x08" or c == "\x7f":
text, i = self.get_text_and_insertion_point() text, i = self.get_text_and_insertion_point()
if i is None and (self.selection_start is None or self.selection_end is None): if i is None and (self.selection_start is None or self.selection_end is None):