Browse Source

tutorial: enter should advance page, not exit

K. Lange 2 years ago
parent
commit
95e6706fed
1 changed files with 3 additions and 2 deletions
  1. 3 2
      apps/tutorial.c

+ 3 - 2
apps/tutorial.c

@@ -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;