fix: enable key repeat in rmlui menu (#364)

This commit is contained in:
briaguya 2024-06-05 07:03:06 -04:00 committed by GitHub
parent 030d793056
commit 1c00519938
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,8 +102,9 @@ bool sdl_event_filter(void* userdata, SDL_Event* event) {
{ {
SDL_KeyboardEvent* keyevent = &event->key; SDL_KeyboardEvent* keyevent = &event->key;
// Skip repeated events. // Skip repeated events when not in the menu
if (event->key.repeat) { if (recompui::get_current_menu() == recompui::Menu::None &&
event->key.repeat) {
break; break;
} }