diff --git a/src/scriptengines/qml/plasmoid/appletinterface.cpp b/src/scriptengines/qml/plasmoid/appletinterface.cpp index 113e6a7f8..3fc93f8c9 100644 --- a/src/scriptengines/qml/plasmoid/appletinterface.cpp +++ b/src/scriptengines/qml/plasmoid/appletinterface.cpp @@ -72,6 +72,14 @@ AppletInterface::AppletInterface(DeclarativeAppletScript *script, QQuickItem *pa connect(applet(), &Plasma::Applet::statusChanged, this, &AppletInterface::statusChanged); + connect(applet(), &Plasma::Applet::activate, + [=] () { + setExpanded(true); + if (QQuickItem *i = qobject_cast(fullRepresentationItem())) { + i->forceActiveFocus(Qt::ShortcutFocusReason); + } + }); + connect(appletScript(), &DeclarativeAppletScript::formFactorChanged, this, &AppletInterface::formFactorChanged); connect(appletScript(), &DeclarativeAppletScript::locationChanged,