From ba701ea0e319bacd0bab1be04b604ceb3ec0f412 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 19 Nov 2018 16:10:35 +0900 Subject: [PATCH] showdialog: enter = 0, escape = 2 --- apps/showdialog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/showdialog.c b/apps/showdialog.c index 26b2ce0c..a95e2b9f 100644 --- a/apps/showdialog.c +++ b/apps/showdialog.c @@ -257,8 +257,12 @@ int main(int argc, char * argv[]) { case YUTANI_MSG_KEY_EVENT: { struct yutani_msg_key_event * ke = (void*)m->data; - if (ke->event.action == KEY_ACTION_DOWN && ke->event.keycode == 'q') { + if (ke->event.action == KEY_ACTION_DOWN && ke->event.keycode == '\n') { playing = 0; + status = 0; + } else if (ke->event.action == KEY_ACTION_DOWN && ke->event.keycode == KEY_ESCAPE) { + playing = 0; + status = 2; } } break;