From 1bb37c34de23e0af5fe425a267c6a8c0f226cdd0 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 9 Jan 2007 15:31:01 +0100 Subject: [PATCH] Correct keyboard brightness keycode --- shell/view/Shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/view/Shell.py b/shell/view/Shell.py index ee7dd09b..2710781e 100644 --- a/shell/view/Shell.py +++ b/shell/view/Shell.py @@ -101,7 +101,7 @@ class Shell(gobject.GObject): self._key_grabber.grab('0xE0') # Overlay key self._key_grabber.grab('0x93') # Frame key self._key_grabber.grab('0x7C') # Power key - self._key_grabber.grab('0x86') # Keyboard brightness + self._key_grabber.grab('0xEC') # Keyboard brightness self._key_grabber.grab('Tab') # For non-OLPC machines @@ -151,7 +151,7 @@ class Shell(gobject.GObject): self._frame.notify_key_press() elif key == '0x7C': # Power key self._shutdown() - elif key == '0x86': # Keyboard brightness + elif key == '0xEC': # Keyboard brightness self._hw_manager.toggle_keyboard_brightness() elif key == 'Tab': self.set_zoom_level(sugar.ZOOM_HOME)