bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
35.35k stars 3.49k forks source link

Mobile Web keyboard does not open when clicking input #12262

Closed v-kat closed 6 months ago

v-kat commented 6 months ago

Bevy version

0.13

What you did

Try to touch a text input on a mobile web bevy game. No mobile keyboard appears. (Might still be an issue with IME and/or bevy_egui)

Description

This seems to happen across all the mobile web platforms I tested (chrome, firefox, and brave on android). I was talking with someone on the bevy discord who mentioned that this was a bevy engine issue. I wasn't sure if it was a bevy_egui issue. Egui has a working mobile web keyboard and I believe https://github.com/emilk/egui/blob/master/crates/eframe/src/web/text_agent.rs is how it triggers the keyboard to open on mobile web.

LMK if you want a code example or more info

mockersf commented 6 months ago

Bevy doesn't have text inputs, so it's likely not a Bevy issue

v-kat commented 6 months ago

It might be something with IME but I'll look into bevy_egui more. https://github.com/mvlabat/bevy_egui/issues/246 has some related issues. Unless it's an underlying winit => bevy IME issue which seems unlikely I doubt bevy is the issue.

I'll close this, apologies.