#7812·libgdx

NativeOnscreenKeyboard behaves different to default, needs more configurability

Author: SomeTroglodyteCreated Jun 1, 2026Updated Jun 14, 2026
Labelsenhancement

Description

Essentially, just plugging in setOnscreenKeyboard(NativeOnscreenKeyboard()) changes the app behaviour. The "go" soft key no longer "goes", it mimics Tab instead, not as keystroke but as TextField.next(). Previously, you'd get an enter key.

Seems intentional: https://github.com/libgdx/libgdx/blob/253a0c0b0b40c9b3f9cb1ca72ec7e0ef4d74cb05/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java#L918-L921

I say unacceptable, as long as the only way to change that is to rewrite that class from scratch (not nice working around missing getters where setters exist). An overridable "onConfirm", or a builder-style overridable that allows modifying configuration just before it's used at the end of private void openNativeInputField, or somesuch, would be infinitely better. But I do like "dismuss", sounds comfy.

Additional Information

No response