Commit 4a0ff7bb authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

emojier: use the main search action as a toggle

parent 3ae6d0bb
......@@ -52,12 +52,13 @@ Kirigami.ScrollablePage
}
actions.main: Kirigami.Action {
checked: searchField.visible
icon.name: "search"
tooltip: i18n("Search...")
shortcut: StandardKey.Find
onTriggered: {
searchField.visible = true
searchField.focus = true
searchField.visible = !searchField.visible
searchField.focus = searchField.visible
}
}
......
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