Merge pull request #40890 from nextcloud/fix/search/close-unified-search-second-ctrl-f

fix(search): Close unified search at the second ctrl+f
pull/40934/head
Christoph Wurst 2023-10-16 16:05:25 +07:00 committed by GitHub
commit 0321bec791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

@ -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