forked from Shinonome/dots-hyprland
search: fix space confirming choice
This commit is contained in:
@@ -183,13 +183,6 @@ Item { // Wrapper
|
|||||||
placeholderTextColor: Appearance.m3colors.m3outline
|
placeholderTextColor: Appearance.m3colors.m3outline
|
||||||
implicitWidth: root.searchingText == "" ? Appearance.sizes.searchWidthCollapsed : Appearance.sizes.searchWidth
|
implicitWidth: root.searchingText == "" ? Appearance.sizes.searchWidthCollapsed : Appearance.sizes.searchWidth
|
||||||
|
|
||||||
KeyNavigation.down: {
|
|
||||||
if (appResults.count > 1) {
|
|
||||||
appResults.focus = true;
|
|
||||||
appResults.currentIndex = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Behavior on implicitWidth {
|
Behavior on implicitWidth {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: Appearance.animation.elementDecelFast.duration
|
duration: Appearance.animation.elementDecelFast.duration
|
||||||
@@ -244,6 +237,10 @@ Item { // Wrapper
|
|||||||
spacing: 0
|
spacing: 0
|
||||||
KeyNavigation.up: searchBar
|
KeyNavigation.up: searchBar
|
||||||
|
|
||||||
|
onFocusChanged: {
|
||||||
|
if(focus) appResults.currentIndex = 1;
|
||||||
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root
|
target: root
|
||||||
function onSearchingTextChanged() {
|
function onSearchingTextChanged() {
|
||||||
|
|||||||
Reference in New Issue
Block a user