Skip to content

Commit

Permalink
make Y/N keys working in QueryDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
a8jan authored and mborik committed Jun 20, 2024
1 parent 518439d commit 76a2dfc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gui/CommonDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ BYTE UserInterface::QueryDialog(const char *title, bool save)
uiQueryState = ptr->action;
break;

case SDL_SCANCODE_Y:
if (!save) {
uiQueryState = cMenu_data[1].action;
}
break;

case SDL_SCANCODE_N:
if (!save) {
uiQueryState = cMenu_data[2].action;
}
break;

case SDL_SCANCODE_UP:
if (cMenu_hilite > 0) {
cMenu_hilite--;
Expand Down

0 comments on commit 76a2dfc

Please sign in to comment.