[sugar] [PATCH] emulator-useful shortcuts back as ctrl-alt-something

Martin Dengler martin
Sat Apr 26 11:10:09 EDT 2008


added back emulator-required keyboard shortcuts, but with additional <ctrl> modifier key (in front of <alt>) to make them much less likely to interfere with acti\
vity shortcuts.
---
 src/view/keyhandler.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/view/keyhandler.py b/src/view/keyhandler.py
index 132eb7c..9b24ab0 100644
--- a/src/view/keyhandler.py
+++ b/src/view/keyhandler.py
@@ -53,6 +53,13 @@ _actions_table = {
     '<ctrl><alt>Tab' : 'previous_window',
     '<ctrl>Escape'   : 'close_window',
     '0xDC'           : 'open_search',
+    '<ctrl>0xDC'     : 'screenshot',
+    # the following are intended for emulator users, not XO deployment kids
+    '<ctrl><alt>f'   : 'frame',
+    '<ctrl><alt>o'   : 'overlay',
+    '<ctrl><alt>r'   : 'rotate',
+    '<ctrl><alt>q'   : 'quit_emulator',
+    '<ctrl><alt>s'   : 'say_text',
 }
 
 J_DBUS_SERVICE = 'org.laptop.Journal'
-- 
1.5.4.1




More information about the Sugar-devel mailing list