make bomb key work to cancel menus.

This commit is contained in:
laochailan 2017-01-28 16:39:25 +01:00
parent 2f5281fdda
commit 53d3829861

View file

@ -55,7 +55,7 @@ void handle_events(EventHandler handler, EventFlags flags, void *arg) {
handler(E_CursorLeft, 0, arg);
} else if(sym == tconfig.intval[KEY_SHOT] || sym == SDLK_RETURN) {
handler(E_MenuAccept, 0, arg);
} else if(sym == SDLK_ESCAPE) {
} else if(sym == SDLK_ESCAPE || sym == tconfig.intval[KEY_BOMB]) {
handler(E_MenuAbort, 0, arg);
}
}