Correct keyboard brightness keycode

This commit is contained in:
Marco Pesenti Gritti 2007-01-09 15:31:01 +01:00
parent 018867a9a8
commit 1bb37c34de

View File

@ -101,7 +101,7 @@ class Shell(gobject.GObject):
self._key_grabber.grab('0xE0') # Overlay key self._key_grabber.grab('0xE0') # Overlay key
self._key_grabber.grab('0x93') # Frame key self._key_grabber.grab('0x93') # Frame key
self._key_grabber.grab('0x7C') # Power 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('<alt>Tab') self._key_grabber.grab('<alt>Tab')
# For non-OLPC machines # For non-OLPC machines
@ -151,7 +151,7 @@ class Shell(gobject.GObject):
self._frame.notify_key_press() self._frame.notify_key_press()
elif key == '0x7C': # Power key elif key == '0x7C': # Power key
self._shutdown() self._shutdown()
elif key == '0x86': # Keyboard brightness elif key == '0xEC': # Keyboard brightness
self._hw_manager.toggle_keyboard_brightness() self._hw_manager.toggle_keyboard_brightness()
elif key == '<alt>Tab': elif key == '<alt>Tab':
self.set_zoom_level(sugar.ZOOM_HOME) self.set_zoom_level(sugar.ZOOM_HOME)