Commit 78a41ced authored by Melvin Keskin's avatar Melvin Keskin

Fix search field behavior

parent 9fe02a33
Pipeline #10393 passed with stages
in 24 minutes and 20 seconds
......@@ -73,22 +73,19 @@ Kirigami.ScrollablePage {
searchField.selectAll()
}
}
Keys.onEscapePressed: checked = false
shortcut: "Ctrl+F"
}
header: Item {
height: searchField.visible ? searchField.height : 0
Kirigami.SearchField {
id: searchField
focusSequence: ""
width: parent.width
height: Kirigami.Units.gridUnit * 2
visible: searchAction.checked
onVisibleChanged: text = ""
onTextChanged: filterModel.setFilterFixedString(text.toLowerCase())
onActiveFocusChanged: {
if (activeFocus) {
searchAction.checked = true
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment