1
0
forked from mirrors/0ad
Files
0ad/source/ps
Ralph Sennhauser 417af009ea Don't map unknown scancodes to hotkeys
Users may generate key presses that don't map to a distinct SDL scancode
and will be mapped SDL_SCANCODE_UNKNOWN instead. Using the same ID for
unmapped hotkeys means any such key press will execute unset hotkeys. As
luck would have it in #7644 this leads to calling "Custom exit to
desktop" if the hotkey is unbound as is the default.

So simply use a code for unused hotkeys that doesn't map to any SDL
scancodes.

Fixes: #7644
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
(cherry picked from commit f10526284f)
Signed-off-by: Itms <itms@wildfiregames.com>
2025-05-01 08:56:52 +02:00
..
2024-12-09 10:43:35 +01:00
2024-11-17 18:03:49 +01:00
2024-12-28 11:29:08 +01:00
2024-12-10 11:29:48 +01:00
2024-12-10 11:29:48 +01:00
2025-04-27 20:59:22 +02:00
2025-01-08 14:36:56 +01:00
2024-12-05 17:49:16 +01:00
2024-12-19 21:36:51 +01:00
2024-12-19 21:36:51 +01:00