some missing CAP_SDL guards

This commit is contained in:
Zeno Rogue committed 2026-11-06 15:33:51 +01:00
1 parent 35125c7878
commit 2125e9ee5b
4 files changed
+19

No files matched your search

+4
View File
@@ -997,12 +997,16 @@ EX namespace dialog {
EX void handle_actions(int &sym, int &uni) {
if(key_actions.count(uni)) {
key_actions[uni]();
#if CAP_SDL
if(uni >= ' ' && uni <= 127) ignore_textinput = true;
#endif
sym = uni = 0;
return;
}
if(key_actions.count(sym)) {
#if CAP_SDL
if(sym >= ' ' && sym <= 127) ignore_textinput = true;
#endif
key_actions[sym]();
sym = uni = 0;
return;