emscripten: Let SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT accept "".

This is used to say "don't even try to listen for keypresses," for apps that
are managing this outside of SDL.

Fixes #10292.
This commit is contained in:
Ryan C. Gordon 2025-01-18 08:43:55 -05:00
parent f3a39074b0
commit 6a72d32d41
No known key found for this signature in database
GPG key ID: FA148B892AB48044
2 changed files with 11 additions and 6 deletions

View file

@ -730,6 +730,7 @@ extern "C" {
* - "#document": the javascript document object
* - "#screen": the javascript window.screen object
* - "#canvas": the WebGL canvas element
* - "": Don't bind anything at all
* - any other string without a leading # sign applies to the element on the
* page with that ID.
*