Commit 20605811 authored by Nate Graham's avatar Nate Graham
Browse files

Focus search field when activated with keyboard shortcut again

This accidentally got lost in 8a4f3930.
parent 30d0ade9
Pipeline #151861 skipped
......@@ -283,10 +283,7 @@ Item {
icon.name: 'search'
checkable: true
checked: expandedFilterView
onClicked: {
persistentSettings.expandedFilterView = !persistentSettings.expandedFilterView
filterTextInput.forceActiveFocus()
}
onClicked: persistentSettings.expandedFilterView = !persistentSettings.expandedFilterView;
}
]
}
......@@ -366,6 +363,11 @@ Item {
duration: Kirigami.Units.longDuration
}
}
onVisibleChanged: {
if (visible) {
filterTextInput.forceActiveFocus();
}
}
contentItems: [
Kirigami.SearchField {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment