fix(search): Close unified search at the second ctrl+f

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-10-12 18:16:52 +02:00 committed by Ferdinand Thiessen
parent 7e2c51204b
commit 7d13e9563b
3 changed files with 6 additions and 3 deletions

View file

@ -370,6 +370,9 @@ export default {
if (event.ctrlKey && event.key === 'f' && !this.open) {
event.preventDefault()
this.open = true
} else if (event.ctrlKey && event.key === 'f' && this.open) {
// User wants to use the native browser search, so we close ours again
this.open = false
}
// https://www.w3.org/WAI/GL/wiki/Using_ARIA_menus

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long