flyover / imgui-js

JavaScript bindings for Dear ImGui using Emscripten and TypeScript
https://flyover.github.io/imgui-js/example/
MIT License
915 stars 98 forks source link

Bug ImGui.InputText Not Wrok By UI from keyboard #33

Closed wshmaple closed 3 years ago

wshmaple commented 3 years ago

This Demo https://codepen.io/flyovergames/pen/ejXjXj ImGui.InputText("name", (value = mesh.name) => mesh.name = value); UI input by keyborad is not work

BUT Demo https://codepen.io/flyovergames/pen/xYPBaj is OK

WHY?

flyover commented 3 years ago

Thanks for letting me know. The canvas element needed the tabindex attribute for it to accept keyboard input.

wshmaple commented 3 years ago

Thanks for letting me know. The canvas element needed the tabindex attribute for it to accept keyboard input.

Thanks for fix Working OK