From 2719b355ae55e9fa568cf39a9aef6e7fd32f6472 Mon Sep 17 00:00:00 2001 From: Bhaskar Divya Date: Wed, 13 May 2020 00:48:35 +0530 Subject: [PATCH] Added change to use AcceptingInput --- plasmoid/package/contents/ui/main.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml index 6a7f4f3..fcd7cf9 100644 --- a/plasmoid/package/contents/ui/main.qml +++ b/plasmoid/package/contents/ui/main.qml @@ -93,6 +93,14 @@ Item{ forceActiveFocus(); } + onActiveFocusChanged: { + if (activeFocus) { + plasmoid.status = PlasmaCore.Types.AcceptingInputStatus + } else { + plasmoid.status = PlasmaCore.Types.ActiveStatus + } + } + // Switch focus properly to terminal to allow text selection onFocusChanged: {