diff options
Diffstat (limited to 'sugar/keybindings.py')
-rw-r--r-- | sugar/keybindings.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sugar/keybindings.py b/sugar/keybindings.py deleted file mode 100644 index f6b0feb..0000000 --- a/sugar/keybindings.py +++ /dev/null @@ -1,17 +0,0 @@ -import gtk -import dbus - -# FIXME These should be handled by the wm, but it's incovenient -# to do that with matchbox at the moment - -def setup_global_keys(window, shell = None): - if not shell: - bus = dbus.SessionBus() - proxy_obj = bus.get_object('com.redhat.Sugar.Shell', '/com/redhat/Sugar/Shell') - shell = dbus.Interface(proxy_obj, 'com.redhat.Sugar.Shell') - - window.connect("key-press-event", __key_press_event_cb, shell) - -def __key_press_event_cb(window, event, shell): - if event.keyval == gtk.keysyms.F3: - shell.toggle_console() |