ocarina: Added control shortcuts

This commit is contained in:
Bryan Schumaker 2011-04-24 09:10:39 -04:00
parent 72e59c9263
commit a639c520f5
1 changed files with 5 additions and 0 deletions

View File

@ -28,3 +28,8 @@ def key_pressed(widget, event):
widget.emit_stop_by_name("key-press-event")
return True
register_shortcut("space", controls.toggle_play)
register_shortcut( "Left", controls.seek_backward)
register_shortcut("Right", controls.seek_forward)
register_shortcut( "n", controls.next)
register_shortcut( "s", controls.stop)