search: fix space confirming choice

This commit is contained in:
end-4
2025-04-25 22:10:16 +02:00
parent e691fdcc59
commit 98547ba837
@@ -183,13 +183,6 @@ Item { // Wrapper
placeholderTextColor: Appearance.m3colors.m3outline
implicitWidth: root.searchingText == "" ? Appearance.sizes.searchWidthCollapsed : Appearance.sizes.searchWidth
KeyNavigation.down: {
if (appResults.count > 1) {
appResults.focus = true;
appResults.currentIndex = 1;
}
}
Behavior on implicitWidth {
NumberAnimation {
duration: Appearance.animation.elementDecelFast.duration
@@ -244,6 +237,10 @@ Item { // Wrapper
spacing: 0
KeyNavigation.up: searchBar
onFocusChanged: {
if(focus) appResults.currentIndex = 1;
}
Connections {
target: root
function onSearchingTextChanged() {