[plasma/plasma-bigscreen] 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 6816d9186b7d17a08c4075ca1e45405d125b55d5 by Devin Lin.
Committed on 22/07/2026 at 03:41.
Pushed by devinlin into branch 'master'.

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

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

https://invent.kde.org/plasma/plasma-bigscreen/-/commit/6816d9186b7d17a08c4075ca1e45405d125b55d5

diff --git a/containments/homescreen/package/contents/ui/homeoverlay/MainColumn.qml b/containments/homescreen/package/contents/ui/homeoverlay/MainColumn.qml
index 1edf9ad9..62331091 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.