search: prevent shaky while typing, prevent clipboard scrolling to bottom

This commit is contained in:
end-4
2025-07-16 10:00:48 +07:00
parent 77f21d8e89
commit 623cd842a6
2 changed files with 4 additions and 0 deletions
@@ -39,6 +39,7 @@ Scope {
anchors { anchors {
top: true top: true
bottom: true
} }
HyprlandFocusGrab { HyprlandFocusGrab {
@@ -81,6 +82,7 @@ Scope {
function setSearchingText(text) { function setSearchingText(text) {
searchWidget.setSearchingText(text); searchWidget.setSearchingText(text);
searchWidget.focusFirstItemIfNeeded();
} }
ColumnLayout { ColumnLayout {
@@ -396,6 +396,8 @@ Item { // Wrapper
} }
} }
onModelChanged: root.focusFirstItemIfNeeded()
delegate: SearchItem { delegate: SearchItem {
// The selectable item for each search result // The selectable item for each search result
required property var modelData required property var modelData