Hi! I've recently switched to KDE Plasma with Wayland, running ArchLinux, I'm using a Fujitsu Lifebook T901, which can be folded to only reveal the screen. KDE is smart enough that if I do that, it automatically enables touch mode, making the UI larger, but then it's missing an onscreen keyboard. I installed Maliit, and once enabled, it works well, but the keyboard remains enabled even if I turn touch mode off. Can I change this behavior somehow?
I think Wayland Qt apps start the keyboard automatically when I focus a text box. It works in Firefox, for example. Doesn't seem to be the case for Xwayland apps and I haven't tested Gtk.
On my Thinkpad 2in1, the behavior your desire is what I get. I'm on Fedora KDE (Kinoite) which pre-installs Maliit by default though, I'm not sure if it comes with some additional configuration.
The help page of virtual keyboards mentions detecting a hardware keyboard, but that's all I know. Does it not detect the keyboard built into my laptop? It makes no sense to me lol.