ocarina: Respond to j and k even if treeviews aren't focused

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-09-06 09:18:22 -04:00
parent 3acbbb048e
commit 96ace25ffe
1 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,9 @@ static gboolean key_pressed(GtkWindow *window, GdkEvent *event, gpointer data)
if (key == "b" || key == "l" || key == "r") {
playlist_switch_to(key);
gtk_window_set_focus(window, NULL);
} else if (key >= "0" && key <= "9")
} else if (key == "j" || key == "k")
playlist_focus_treeview();
else if (key >= "0" && key <= "9")
playlist_switch_to_n(atoi(key.c_str()));
else if (key == "n")
libsaria::deck::next();