Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text input is broken on web #75

Open
aleokdev opened this issue Oct 6, 2022 · 1 comment
Open

Text input is broken on web #75

aleokdev opened this issue Oct 6, 2022 · 1 comment

Comments

@aleokdev
Copy link

aleokdev commented Oct 6, 2022

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 aleokdev changed the title Text input is broken Text input is broken on web Oct 6, 2022
@aleokdev
Copy link
Author

aleokdev commented Oct 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant