Regression: On-screen keyboard opens even though physical keyboard is attached (but behaves properly in gdm)
Affected version
- Device: Microsoft Surface Pro 3
- OS: Fedora 36 Workstation
- gnome-shell version: 42.3.1 (Fedora package version: 42.3.1-1.fc36)
- mutter version: 42.3 (Fedora package version: 42.3-1.fc36)
- gdm version: 42.0 (Fedora package version: 42.0-2.fc36)
- Reproduces both in Wayland and X11 mode
- Reproduces without any extensions enabled
Bug summary
Since the last week or so, the on-screen keyboard has been appearing even when my physical keyboard is attached. I have a 2-in-1 PC (a tablet with an attachable keyboard) and prior to this, it was acting as expected, i.e., the on-screen keyboard only appeared when the keyboard was detached. I'm not sure what caused this regression. I tried reverting to an older kernel (5.17.6 instead of 5.18.11) but the issue persists. Furthermore, the on-screen keyboard still behaves as expected in gdm! That is, it does not appear in gdm when my physical keyboard is attached, but does appear when I remove it. I am not sure what to make of that given that I understand gdm and the GNOME desktop share a lot of components?
Steps to reproduce
- Use a Surface Pro 3 laptop with its hardware keyboard attached (didn't test any other setups as I don't have any other PC available at the moment)
- Open the overview or a GTK app
- Click on a text field (either using the touch screen or the built-in trackpad)
- Observe that the on-screen keyboard appears despite that the hardware keyboard is attached
- Log out to gdm
- Observe that the on-screen keyboard does not appear even when the password entry field is pressed
- Detach the hardware keyboard
- Observe that the on-screen keyboard appears as expected when the password entry field is pressed
What happened
GNOME Shell showed the on-screen keyboard despite that my hardware keyboard is attached.
What did you expect to happen
GNOME Shell should only show the on-screen keyboard when my hardware keyboard is detached.