Merge pull request #243

This commit is contained in:
David Vierra 2013-01-08 11:25:27 -10:00
commit 3ec0568e7b

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):