From c72e038237152dd068656841da56c6b489e0770d Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 11 Oct 2015 10:46:50 +0900 Subject: [PATCH] rage - expand stop action to also use backspace and del keys --- src/bin/key.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/key.c b/src/bin/key.c index 69de77d..cb835cd 100644 --- a/src/bin/key.c +++ b/src/bin/key.c @@ -107,7 +107,9 @@ key_handle(Evas_Object *win, Evas_Event_Key_Down *ev) win_do_play_pause(win); } else if ((!strcmp(ev->keyname, "s")) || - (!strcmp(ev->key, "XF86AudioStop"))) + (!strcmp(ev->key, "XF86AudioStop")) || + (!strcmp(ev->key, "BackSpace")) || + (!strcmp(ev->key, "Delete"))) { video_stop(inf->vid); elm_layout_signal_emit(inf->lay, "action,stop", "rage"); @@ -115,7 +117,6 @@ key_handle(Evas_Object *win, Evas_Event_Key_Down *ev) } else if (!strcmp(ev->keyname, "c")) { - printf("(c)lear!\n"); video_stop(inf->vid); elm_layout_signal_emit(inf->lay, "action,stop", "rage"); win_video_free(win);