[sugar] [PATCH] fix #4646 - replace/normalize some keyboard shortcuts

Martin Dengler martin at martindengler.com
Tue Apr 29 16:45:06 EDT 2008


---
 src/view/keyhandler.py |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/src/view/keyhandler.py b/src/view/keyhandler.py
index 306bb21..219cc5e 100644
--- a/src/view/keyhandler.py
+++ b/src/view/keyhandler.py
@@ -40,26 +40,25 @@ _actions_table = {
     'F4'             : 'zoom_activity',
     'F9'             : 'brightness_down',
     'F10'            : 'brightness_up',
-    '<ctrl>F9'       : 'brightness_min',
-    '<ctrl>F10'      : 'brightness_max',
+    '<alt>F9'        : 'brightness_min',
+    '<alt>F10'       : 'brightness_max',
     'F11'            : 'volume_down',
     'F12'            : 'volume_up',
-    '<ctrl>F11'      : 'volume_min',
-    '<ctrl>F12'      : 'volume_max',
+    '<alt>F11'       : 'volume_min',
+    '<alt>F12'       : 'volume_max',
     '<alt>1'         : 'screenshot',
-    '<alt>f'         : 'frame',
     '0x93'           : 'frame',
     '0xEB'           : 'rotate',
-    '<alt>r'         : 'rotate',
-    '<alt>q'         : 'quit_emulator',
     '<alt>Tab'       : 'next_window',
-    '<alt>n'         : 'next_window',
-    '<ctrl><alt>Tab' : 'previous_window',
-    '<alt>p'         : 'previous_window',
-    '<ctrl>Escape'   : 'close_window',
-    '<ctrl>q'        : 'close_window',
+    '<alt><shift>Tab': 'previous_window',
+    '<alt>Escape'    : 'close_window',
     '0xDC'           : 'open_search',
-    '<alt>s'         : 'say_text'
+# the following are intended for emulator users
+    '<alt><shift>f'  : 'frame',
+    '<alt><shift>q'  : 'quit_emulator',
+    '<alt><shift>o'  : 'open_search',
+    '<alt><shift>r'  : 'rotate',
+    '<alt><shift>s'  : 'say_text',
 }
 
 J_DBUS_SERVICE = 'org.laptop.Journal'
-- 
1.5.4.1



More information about the Sugar mailing list