forked from Shinonome/dots-hyprland
search: prevent shaky while typing, prevent clipboard scrolling to bottom
This commit is contained in:
@@ -39,6 +39,7 @@ Scope {
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
bottom: true
|
||||
}
|
||||
|
||||
HyprlandFocusGrab {
|
||||
@@ -81,6 +82,7 @@ Scope {
|
||||
|
||||
function setSearchingText(text) {
|
||||
searchWidget.setSearchingText(text);
|
||||
searchWidget.focusFirstItemIfNeeded();
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -396,6 +396,8 @@ Item { // Wrapper
|
||||
}
|
||||
}
|
||||
|
||||
onModelChanged: root.focusFirstItemIfNeeded()
|
||||
|
||||
delegate: SearchItem {
|
||||
// The selectable item for each search result
|
||||
required property var modelData
|
||||
|
||||
Reference in New Issue
Block a user