Skip to content
Snippets Groups Projects
Verified Commit f2f9359f authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Add a shortcut for search

parent f1c1f18f
No related branches found
No related tags found
No related merge requests found
Pipeline #3768 passed
......@@ -33,6 +33,11 @@ Pane {
searchField.text = ""
}
Shortcut {
sequence: StandardKey.Find
onActivated: searchButton.searchActive = !searchButton.searchActive
}
Layout.fillWidth: true
implicitHeight: topLayout.height + Nheko.paddingMedium * 2
z: 3
......@@ -268,8 +273,9 @@ Pane {
image: ":/icons/icons/ui/search.svg"
ToolTip.visible: hovered
ToolTip.text: qsTr("Search this room")
onClicked: {
searchActive = !searchActive
onClicked: searchActive = !searchActive
onSearchActiveChanged: {
if (searchActive) {
searchField.forceActiveFocus();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment