ocarina: Added toggle_play() shortcut
Spacebar! Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
6ae25ccdcb
commit
d23469dfa7
|
@ -5,6 +5,7 @@
|
|||
#include <ocarina/ocarina.h>
|
||||
#include <ocarina/window.h>
|
||||
|
||||
#include <libsaria/audio.h>
|
||||
#include <libsaria/stack.h>
|
||||
#include <libsaria/prefs.h>
|
||||
|
||||
|
@ -91,7 +92,9 @@ static gboolean key_pressed(GtkWidget *widget, GdkEvent *event, gpointer data)
|
|||
stringstream s(key);
|
||||
s >> k;
|
||||
ocarina::playlist::switch_to_plist(k);
|
||||
} else if (key == "Escape")
|
||||
} else if (key == "space")
|
||||
libsaria::audio::toggle_play();
|
||||
else if (key == "Escape")
|
||||
gtk_widget_grab_focus(win);
|
||||
else
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue