Skip to content

Remove text refocus on input to fix mobile keyboard layout resetting#8047

Closed
KonaeAkira wants to merge 1 commit intoemilk:mainfrom
KonaeAkira:keyboard-reset-fix
Closed

Remove text refocus on input to fix mobile keyboard layout resetting#8047
KonaeAkira wants to merge 1 commit intoemilk:mainfrom
KonaeAkira:keyboard-reset-fix

Conversation

@KonaeAkira
Copy link
Copy Markdown
Contributor

Fixes #8046

I don't know what the original code was supposed to fix, but removing that code fixes the issue linked above,

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 29, 2026

Preview available at https://egui-pr-preview.github.io/pr/8047-keyboard-reset-fix
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@umajho
Copy link
Copy Markdown
Contributor

umajho commented Mar 30, 2026

Since the comments refer to Gboard, I tested the behavior using it.
I found that these lines are necessary for Gboard to function correctly for backspacing: without them, backspacing breaks.

With these lines (before this PR) Without these lines (with this PR applied)
The first 5 backspaces didn't delete characters.

2026-03-30 12 41 46 PM

2026-03-30 12 42 06 PM


Update:

Since I'm also working on improving TextAgent, I attempted to work around this issue in #8045.
Would you mind taking a look at that PR?

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

Successfully merging this pull request may close these issues.

Keyboard layout is reset after every keystroke in text input on mobile

2 participants