mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 05:46:00 +00:00
Text input is no longer automatically enabled when initializing video.
Fixes https://github.com/libsdl-org/SDL/issues/9309 Fixes https://github.com/libsdl-org/SDL/issues/9268
This commit is contained in:
@@ -828,7 +828,7 @@ static EM_BOOL Emscripten_HandleKey(int eventType, const EmscriptenKeyboardEvent
|
||||
is_nav_key = SDL_TRUE;
|
||||
}
|
||||
|
||||
if ((eventType == EMSCRIPTEN_EVENT_KEYDOWN) && SDL_EventEnabled(SDL_EVENT_TEXT_INPUT) && !is_nav_key) {
|
||||
if ((eventType == EMSCRIPTEN_EVENT_KEYDOWN) && SDL_TextInputActive() && !is_nav_key) {
|
||||
prevent_default = SDL_FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user