mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #40890 from nextcloud/fix/search/close-unified-search-second-ctrl-f
fix(search): Close unified search at the second ctrl+f
This commit is contained in:
commit
0321bec791
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
|
||||
|
|
|
|||
4
dist/core-unified-search.js
vendored
4
dist/core-unified-search.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-unified-search.js.map
vendored
2
dist/core-unified-search.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue