Follow Plasma's virtual keyboard setting

KWin activates the input method for every text field; its policy (the
tray toggle) only gates the input panel, which sloposk doesn't use. sloposk
now asks KWin over D-Bus whether a focused field should show the
keyboard: never when off, only after touch or a pen by default.
"Always Show" and D-Bus Show/Toggle still show it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 17:31:13 +01:00
co-authored by Claude Opus 5.5
parent 499e5ee76e
commit b745e9da1b
8 changed files with 105 additions and 4 deletions
+13
View File
@@ -16,6 +16,19 @@ private Q_SLOTS:
QVERIFY(!v.isVisible());
}
void fieldShowsOnlyWhenTheSystemWantsIt()
{
VisibilityController v;
v.setShowOnField(false);
v.setFieldActive(true);
QVERIFY(!v.isVisible());
v.show(); // explicit requests still work
QVERIFY(v.isVisible());
v.setShowOnField(true);
v.setFieldActive(true);
QVERIFY(v.isVisible());
}
void dismissLastsUntilFocusChanges()
{
VisibilityController v;