widgets/krunner: Fix keyboard focus being invoked on shell startup

This commit is contained in:
Devin Lin 2022-01-13 19:56:34 -05:00
parent 626089800a
commit e555a444aa

View file

@ -105,6 +105,7 @@ Item {
id: anim id: anim
duration: PlasmaCore.Units.longDuration * 2 duration: PlasmaCore.Units.longDuration * 2
easing.type: Easing.OutQuad easing.type: Easing.OutQuad
running: false
onFinished: { onFinished: {
if (anim.to === root.openedContentY) { if (anim.to === root.openedContentY) {
queryField.forceActiveFocus(); queryField.forceActiveFocus();
@ -162,7 +163,6 @@ Item {
} }
PlasmaComponents.TextField { PlasmaComponents.TextField {
id: queryField id: queryField
focus: true
Layout.fillWidth: true Layout.fillWidth: true
placeholderText: i18n("Search…") placeholderText: i18n("Search…")
inputMethodHints: Qt.ImhNoPredictiveText // don't need to press "enter" to update text inputMethodHints: Qt.ImhNoPredictiveText // don't need to press "enter" to update text