rage - expand stop action to also use backspace and del keys

This commit is contained in:
Carsten Haitzler 2015-10-11 10:46:50 +09:00
parent e76c1c3cf1
commit c72e038237
1 changed files with 3 additions and 2 deletions

View File

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