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

Martin Dengler martin at martindengler.com
Tue Apr 29 15:13:44 EDT 2008


---
 src/view/keyhandler.py |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/view/keyhandler.py b/src/view/keyhandler.py
index 306bb21..eac4fa6 100644
--- a/src/view/keyhandler.py
+++ b/src/view/keyhandler.py
@@ -46,20 +46,20 @@ _actions_table = {
     'F12'            : 'volume_up',
     '<ctrl>F11'      : 'volume_min',
     '<ctrl>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'
+    '<alt>0xDC'      : 'screenshot',
+# the following are intended for emulator users
+    '<alt><shift>1'  : 'screenshot',
+    '<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