From 10fd43e7afda7be3228780baf52dac5d7473a7f4 Mon Sep 17 00:00:00 2001 From: Martin Kaistra Date: Mon, 7 Jan 2013 14:30:27 +0100 Subject: [PATCH] allow input of utf8 characters in TextEditorWrapped --- albow/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/albow/fields.py b/albow/fields.py index 00b4062..f894a68 100644 --- a/albow/fields.py +++ b/albow/fields.py @@ -781,7 +781,7 @@ class TextEditorWrapped(Widget): def insert_char(self, c): if self.upper: c = c.upper() - if c <= "\x7f": + if c <= u"\xff": if c == "\x08" or c == "\x7f": text, i = self.get_text_and_insertion_point() if i is None and (self.selection_start is None or self.selection_end is None):