ocarina: Only print out unhandled keys

I'll know if a shortcut key is pressed, so I only want to print out
unhandled keys so I know their names.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-09-01 10:25:42 -04:00
parent 5a9f4f4bca
commit 0d5941d72f
1 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,6 @@ static gboolean key_pressed(GtkWidget *widget, GdkEvent *event, gpointer data)
if (playlist_entry_focused())
return FALSE;
println("Window handling key press: " + key);
if (key == "b" || key == "l" || key == "r")
playlist_switch_to(key);
@ -75,8 +74,10 @@ static gboolean key_pressed(GtkWidget *widget, GdkEvent *event, gpointer data)
playlist_focus_entry();
else if (key == "space")
libsaria::audio::toggle_play();
else
else {
println("Unhandled key: " + key);
return FALSE;
}
return TRUE;
}