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