diff --git a/source/shared_lib/sources/platform/sdl/window.cpp b/source/shared_lib/sources/platform/sdl/window.cpp index e48e4439e..822b27ebc 100644 --- a/source/shared_lib/sources/platform/sdl/window.cpp +++ b/source/shared_lib/sources/platform/sdl/window.cpp @@ -755,9 +755,12 @@ void Window::addAllowedKeys(string keyList) { string key = trim(keys[keyIndex]); wchar_t sdl_key = convertStringtoSDLKey(key); - mapAllowedKeys[sdl_key] = true; + if(sdl_key != SDLK_UNKNOWN) { + mapAllowedKeys[sdl_key] = true; + } if(SystemFlags::VERBOSE_MODE_ENABLED) printf("key: %d [%s] IS ALLOWED\n",sdl_key, key.c_str()); + //printf("key: %d [%s] IS ALLOWED\n",sdl_key, key.c_str()); } } }