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 {
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user