emscripten-core / emscripten-core/emscripten

Wasm blocks the input of <Input /> and <Textarea /> in html.

Open
#13,675 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I'm using "emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 2.0.14".
After I loaded my wasm to the web page, all the and disabled. I couldn't input any character.

Also I tried to stop the key related listening by using

`emscripten_set_keypress_callback(0, 0, 0, 0);
emscripten_set_keydown_callback(0, 0, 0, 0);
emscripten_set_keyup_callback(0, 0, 0, 0);`

But it doesn't work. I got this error "SyntaxError: Failed to execute 'querySelector' on 'Document': '0' is not a valid selector.".

My wasm is about media rendering. And I'm using SDL.

Can anyone help on this?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.