emscripten-core / emscripten-core/emscripten
HTML inputs are locked after calling `emscripten_set_main_loop`, and still locked after calling `emscripten_cancel_main_loop`
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 109
Description
When calling `emscripten_set_main_loop` on a SDL aplication, all HTML inputs (like text inputs) have the keyboard interaction locked. I see that I can continue interacting with the page, and with other controls using the mouse, and even keyboard events in the page are caught, but is like the inputs all become readonly.
Although I can't find anything int the documentation regarding this behaviour, this kinda makes sense, as SDL will take over the keyboard. But I would expect that `emscripten_cancel_main_loop` would return the control to the inputs. However, this is not the case, and the only way to return control to the inputs is by reloading the page.
I tested both in Firefox and Chrome.
Is this expected behvaiour? If so, how can I get the keyboard control back?
Contributor guide
Assessment
This issue has not been assessed yet.