[plasma/plasma-bigscreen/Plasma/6.7] containments/homescreen/package/contents/ui/homeoverlay: homeoverlay: Fix vkbd toggle

Devin Lin <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a9106247baf556cf39cd466643286f7caa82a491 by Devin Lin.
Committed on 06/08/2026 at 21:02.
Pushed by devinlin into branch 'Plasma/6.7'.

homeoverlay: Fix vkbd toggle

The plasma-workspace keyboard library replaced the enabled property with "modes": https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6548


(cherry picked from commit bffb6b63761e6876bc181160d2fa7799251eff8f)

Co-authored-by: Devin Lin <[email protected]>

M  +9    -4    containments/homescreen/package/contents/ui/homeoverlay/MainColumn.qml

https://invent.kde.org/plasma/plasma-bigscreen/-/commit/a9106247baf556cf39cd466643286f7caa82a491

diff --git a/containments/homescreen/package/contents/ui/homeoverlay/MainColumn.qml b/containments/homescreen/package/contents/ui/homeoverlay/MainColumn.qml
index b055c3e5..96f600df 100644
--- a/containments/homescreen/package/contents/ui/homeoverlay/MainColumn.qml
+++ b/containments/homescreen/package/contents/ui/homeoverlay/MainColumn.qml
@@ -204,10 +204,15 @@ ColumnLayout {
                 icon.name: "input-keyboard-virtual-symbolic"
                 text: i18n("On-screen Keyboard")
 
-                checked: Keyboards.KWinVirtualKeyboard.enabled
-                onCheckedChanged: {
-                    Keyboards.KWinVirtualKeyboard.enabled = checked;
-                    checked = Qt.binding(() => Keyboards.KWinVirtualKeyboard.enabled);
+                checked: Keyboards.KWinVirtualKeyboard.mode === Keyboards.KWinVirtualKeyboard.AnyInput
+                onToggled: {
+                    if (Keyboards.KWinVirtualKeyboard.mode === Keyboards.KWinVirtualKeyboard.AnyInput) {
+                        Keyboards.KWinVirtualKeyboard.mode = Keyboards.KWinVirtualKeyboard.Never;
+                    } else {
+                        Keyboards.KWinVirtualKeyboard.mode = Keyboards.KWinVirtualKeyboard.AnyInput;
+                    }
+
+                    checked = Qt.binding(() => (Keyboards.KWinVirtualKeyboard.mode === Keyboards.KWinVirtualKeyboard.AnyInput));
                 }
             }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.