summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2010-07-19 13:02:41 -0700
committerEitan Isaacson <eitan@monotonous.org>2010-07-19 13:06:28 -0700
commita725f14fd3f0090e37df16a0949aa40774f0c23f (patch)
treee93d3bcf5d4a13524b29a9c3ad83c6eeb9677027
parent6f77e3d5016abc696e40d472cf35722fff6c14c4 (diff)
downloadcaribou-a725f14fd3f0090e37df16a0949aa40774f0c23f.tar.gz
Support unicode key correctly.
-rw-r--r--caribou/ui/keyboard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/caribou/ui/keyboard.py b/caribou/ui/keyboard.py
index 3309d17..ae0f2a5 100644
--- a/caribou/ui/keyboard.py
+++ b/caribou/ui/keyboard.py
@@ -174,7 +174,7 @@ class Key(gtk.Button):
if type(value) == str or type(value) == unicode:
value = value.decode('utf-8')
if len(value) == 1:
- self._value = ord(value)
+ self._value = gtk.gdk.unicode_to_keyval(ord(value))
else:
key_value = gtk.gdk.keyval_from_name(value)
if key_value: