[Sugar-devel] [PATCH] keyhandler: Use textual key names

Daniel Drake dsd at laptop.org
Tue Mar 27 16:22:36 EDT 2012


Conversion of 0x## keycodes is broken in libegg with recent GDK.

Switch to the textual names of the keys in question to work around this
bug, reference:  https://bugzilla.gnome.org/show_bug.cgi?id=672950

This fixes the frame key on XO laptops running Fedora 17.

Signed-off-by: Daniel Drake <dsd at laptop.org>
---
 src/jarabe/view/keyhandler.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/jarabe/view/keyhandler.py b/src/jarabe/view/keyhandler.py
index a71f260..530da75 100644
--- a/src/jarabe/view/keyhandler.py
+++ b/src/jarabe/view/keyhandler.py
@@ -51,11 +51,11 @@ _actions_table = {
     'XF86AudioRaiseVolume': 'volume_up',
     '<alt>F11': 'volume_min',
     '<alt>F12': 'volume_max',
-    '0x93': 'frame',
+    'XF86MenuKB': 'frame',
     '<alt>Tab': 'next_window',
     '<alt><shift>Tab': 'previous_window',
     '<alt>Escape': 'close_window',
-    '0xDC': 'open_search',
+    'XF86WebCam': 'open_search',
 # the following are intended for emulator users
     '<alt><shift>f': 'frame',
     '<alt><shift>q': 'quit_emulator',
-- 
1.7.7.6



More information about the Sugar-devel mailing list