eframe_template icon indicating copy to clipboard operation
eframe_template copied to clipboard

Text input is broken on web

Open aleokdev opened this issue 2 years ago • 1 comments

Text input has really weird behavior using the eframe template in web. ~~For instance, copying/cutting text is not allowed (This also happens in https://emilk.github.io/eframe_template/).~~ Some other times, text input doesn't work at all except for the tab or enter keys. Surprisingly, this issue doesn't happen in the egui demo (https://egui.rs)

I'm guessing there's a problem with the index.html wrapper.

aleokdev avatar Oct 06 '22 09:10 aleokdev

The clipboard issue can be solved by setting RUSTFLAGS=--cfg=web_sys_unstable_apis when running trunk (This should be mentioned somewhere in this repo, but I can't find it), but the tab/enter issue still persists.

aleokdev avatar Oct 06 '22 11:10 aleokdev