'gnome: on-screen keyboard not showing up, scrolling in firefox not working

I have a setup with a touch screen attached via USB to a linux machine running Gnome 42/Ubuntu 22.04. Unfortunately the on-screen keyboard doesn't show up in Firefox and also swiping across the page to scroll results in the text being selected.

I believe there is a bug with Gnome/Mutter not being in touch mode. Running the snippet

gdbus call --session \
--dest org.gnome.Shell \
--object-path /org/gnome/Shell \
--method org.gnome.Shell.Eval \
'imports.gi.Clutter.get_default_backend().get_default_seat().touch_mode'

Results in (false, ''). Is there a way to force touch mode? Is this the real problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source