Skip to content

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

@KonaeAkira

Description

@KonaeAkira

The keyboard layout is reset after each keystroke. For example, the keyboard exits the numeric layout after typing any character as can be seen in the video below:

screen-20260329-172538-1774797928312.mp4

Recorded on a Google Pixel 7a running Firefox 149.0. The keyboard is the default keyboard that came with the phone (Gboard).

This happens on anything with a text input.

The expected behavior is to be able to type multiple numbers in succession without having to switch back to the numeric layout every time.

I suspect the issue is caused by these lines added in #4855:

// Fix android virtual keyboard Gboard
// This removes the virtual keyboard's suggestion.
if !event.is_composing() {
input.blur().ok();
input.focus().ok();
}

Edit: I can confirm that removing those lines fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions