Skip to content

Tell SDL2/3 to hide onscreen keyboards, fix #739#741

Merged
DanielGibson merged 1 commit intodhewm:masterfrom
DanielGibson:hide-onscreen-keyboard
Feb 24, 2026
Merged

Tell SDL2/3 to hide onscreen keyboards, fix #739#741
DanielGibson merged 1 commit intodhewm:masterfrom
DanielGibson:hide-onscreen-keyboard

Conversation

@DanielGibson
Copy link
Member

Apparently on Steamdeck enabling SDL textinput always shows the onscreen keyboard without any input possible. At least that's my theory for #739 which reports an onscreen keyboard that doesn't go away and makes all input impossible.

dhewm3 enables SDL textinput if a menu or the console is open, because sometimes menus allow text input.
I hope this works around the reported problem and that opening the onscreen-keyboard with whatever combination of buttons Steamdeck uses for that still works. I don't have a Steamdeck so I can't test.

Apparently on Steamdeck enabling SDL textinput always shows the onscreen
keyboard without any input possible. At least that's my theory for dhewm#739
which reports an onscreen keyboard that doesn't go away and makes all
input impossible.

dhewm3 enables SDL textinput if a menu or the console is open, because
sometimes menus allow text input.
I hope this works around the reported problem and that opening the
onscreen-keyboard with whatever combination of buttons Steamdeck
uses for that still works. I don't have a Steamdeck so I can't test.
@DanielGibson
Copy link
Member Author

DanielGibson commented Feb 23, 2026

Can anyone who owns a steamdeck please test if these binaries work: dhewm3-1.5.5_RC2+onscreen-kb-fixes_Linux_amd64.tar.gz

Ideally also check if you can write text when explicitly opening the onscreen keyboard (I guess the steamdeck has a button-combination for that?), for example by setting/modifying the player name in the main menu under multiplayer -> multiplayer settings

I don't know if this makes a difference, but if so far everything works and you could also test if it works if you launch dhewm3 from Steam (as Non-Steam Game) that would be awesome.

If you don't own Doom3, you can use the demo gamedata, see https://dhewm3.org/#using-the-doom3-demo-gamedata

(And if you're extra-motivated, try if you can reproduce the reported problem, an onscreen keyboard blocking all input, with the binaries from 1.5.5 RC2, so we can see if my changes here really fix the issue or if it doesn't happen on your system either way)

@DanielGibson DanielGibson merged commit 05db996 into dhewm:master Feb 24, 2026
4 checks passed
@DanielGibson
Copy link
Member Author

DanielGibson commented Feb 24, 2026

@NuclearMonster tested this on his steamdeck and it works - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant