Browse Source

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

fix(search): Close unified search at the second ctrl+f
tags/v28.0.0beta1
Christoph Wurst 8 months ago
parent
commit
0321bec791
No account linked to committer's email address

+ 3
- 0
core/src/views/UnifiedSearch.vue 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

+ 2
- 2
dist/core-unified-search.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-unified-search.js.map
File diff suppressed because it is too large
View File


Loading…
Cancel
Save