mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 14:49:40 +00:00
keyboard: Don't clear the keymap when it is set to auto release
Don't unset the keymap when it is set to auto release, or it will infinitely recurse.
This commit is contained in:
@@ -207,7 +207,7 @@ void SDL_DestroyKeymap(SDL_Keymap *keymap)
|
||||
return;
|
||||
}
|
||||
|
||||
if (keymap == SDL_GetCurrentKeymap(true)) {
|
||||
if (!keymap->auto_release && keymap == SDL_GetCurrentKeymap(true)) {
|
||||
SDL_SetKeymap(NULL, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user