emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.88k stars 3.32k forks source link

library_glfw.js blocks html inputs #22866

Open uysalibov opened 2 weeks ago

uysalibov commented 2 weeks ago

Why is the marked area in the link I gave in the glfw necessary? Although I do not use any key event in my own project, “backspace” and “tab” do not work in the inputs in html because of this marked field.

https://github.com/emscripten-core/emscripten/blob/94f41734f1e9f74a19ac209e35e803ca29fcdd25/src/library_glfw.js#L416-L425

sbc100 commented 2 weeks ago

This doesn't answer your question but that code is duplicated from: https://github.com/emscripten-core/emscripten/blob/fa5bc28be30ef78902230fbd4ab185044050de3d/src/library_sdl.js#L687-L694

So I guess SDL programs have the same issue?

uysalibov commented 2 weeks ago

Yes, probably it has same issue too.