godotengine / godotengine/godot

Virtual keyboard does not work when fullscreen on mobile devices

Open
#117,342 0 comments 1 reaction 0 assignees View on GitHub
bug platform:android platform:web topic:input topic:platforms
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

4.6.1

### System information

Firefox 148.0.1 or Chrome 145.0.X.X on Android 13 (samsung S20)

### Issue description

Any project exported for the web that is shown fullscreen will fail to bring up the OS virtual keyboard when a lineedit is focused. It works fine in windowed mode.

Tested on chrome and firefox, I don't have an apple device to test safari on.

I guess it is possible that this is could be an OS or browser bug and not godot's responsibilty?

For the moment I have hacked around it by turning fullscreen off/on in the `LineEdit.editing_toggled` signal handler.

See #89221

### Steps to reproduce

1. Open the MRP
2. export it for web
3. serve it via some webserver (docker compose included)
4. browse to it on a mobile device
5. hit the "fullscreen" button
6. try to edit the lineedit text

### Minimal reproduction project (MRP)

[virtual-keyboard-fullscreen.tar.gz](https://github.com/user-attachments/files/25888181/virtual-keyboard-fullscreen.tar.gz)

Contributor guide

Open the contributing guide

Research direction

Start with the attached MRP, export it for the web, serve it using the included docker-compose setup, and reproduce the LineEdit behavior on a mobile device in fullscreen. Compare fullscreen and windowed mode in Chrome and Firefox, then verify that the OS virtual keyboard opens for the LineEdit without relying on the editing_toggled workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp, docker-compose, godot
Domain
frontend, mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.