Fix broken default sneak keybind on macOS with SDL (#14754)

This commit is contained in:
grorp 2024-06-16 17:50:02 +02:00 committed by GitHub
parent a9cca5e76c
commit d7f4ce6cff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

@ -40,3 +40,4 @@
#cmakedefine01 CURSES_HAVE_NCURSESW_CURSES_H
#cmakedefine01 BUILD_UNITTESTS
#cmakedefine01 BUILD_BENCHMARKS
#cmakedefine01 USE_SDL2

@ -539,8 +539,8 @@ void set_default_settings()
settings->setDefault("display_density_factor", "1");
settings->setDefault("dpi_change_notifier", "0");
// Altered settings for macOS
#if defined(__MACH__) && defined(__APPLE__)
// Altered settings for CIrrDeviceOSX
#if !USE_SDL2 && defined(__MACH__) && defined(__APPLE__)
settings->setDefault("keymap_sneak", "KEY_SHIFT");
#endif