tutorial: enter should advance page, not exit

This commit is contained in:
K. Lange 2019-01-12 13:57:32 +09:00
parent d6f13f56f3
commit 95e6706fed

View File

@ -348,8 +348,9 @@ int main(int argc, char * argv[]) {
{
struct yutani_msg_key_event * ke = (void*)m->data;
if (ke->event.action == KEY_ACTION_DOWN && ke->event.keycode == '\n') {
playing = 0;
status = 0;
page++;
load_page(page);
redraw();
} else if (ke->event.action == KEY_ACTION_DOWN && ke->event.keycode == KEY_ESCAPE) {
playing = 0;
status = 2;