Skip to content

Commit

Permalink
- fix keyboard repeat events not being sent to menus if TranslateKeyb…
Browse files Browse the repository at this point in the history
…oardEvents is true
  • Loading branch information
Gutawer authored and Doom2fan committed Dec 9, 2020
1 parent a6a02a2 commit f223005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/menu/menu.cpp
Expand Up @@ -637,7 +637,8 @@ bool M_Responder (event_t *ev)
{
// We do our own key repeat handling but still want to eat the
// OS's repeated keys.
return true;
if (CurrentMenu->TranslateKeyboardEvents()) return true;
else return CurrentMenu->CallResponder(ev);
}
else if (ev->subtype == EV_GUI_BackButtonDown || ev->subtype == EV_GUI_BackButtonUp)
{
Expand Down

0 comments on commit f223005

Please sign in to comment.