emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.82k stars 3.31k forks source link

library_glfw.js blocks html inputs #22866

Open uysalibov opened 6 days ago

uysalibov commented 6 days 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 6 days 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 5 days ago

Yes, probably it has same issue too.