Bug 459116

Summary: Bemenu does not work with onscreen keyboard
Product: [Plasma] plasma-mobile Reporter: Miles Alan <m>
Component: ShellAssignee: Plasma Mobile Bugs <plasma-mobile-bugs-null>
Status: REPORTED ---    
Severity: normal CC: espidev
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Miles Alan 2022-09-14 16:59:51 UTC
SUMMARY
On plasma-mobile, after launching bemenu, the onscreen keyboard does not appear, and if manually launched via button or via dbus it's impossible to type into the bemenu prompt.

STEPS TO REPRODUCE
1. Open Terminal on plasma mobile
2. Launch bemenu by typing: `seq 1 10 | bemenu -l 10`

OBSERVED RESULT
Onscreen keyboard does not launch, and if manually launched through button or qdbus (`qdbus org.kde.KWin /VirtualKeyboard org.kde.kwin.VirtualKeyboard.active true`), the keyboard does not focus bemenu and it's impossible to type into the bemenu prompt.

EXPECTED RESULT
The onscreen keyboard should focus bemenu and be able to type into bemenu's prompt. This is the behavior on other mobile environments such as Phosh.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: PmOS edge / Alpine Linux
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version:  5.15.5

ADDITIONAL INFORMATION
Is there someway via dbus or otherwise to make the OSK focus to the bemenu overlay?
Comment 1 Devin Lin 2022-09-14 22:58:32 UTC
Do you know if bemenu supports virtual keyboards, and is being run in Wayland (not Xwayland)? 

What might be happening is that you are using a feature of the keyboard in Phosh to force it to act like a hardware keyboard. This will be supported in the next Plasma version: https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/259