Skip to content

Commit

Permalink
Merge pull request #40890 from nextcloud/fix/search/close-unified-sea…
Browse files Browse the repository at this point in the history
…rch-second-ctrl-f

fix(search): Close unified search at the second ctrl+f
  • Loading branch information
ChristophWurst authored Oct 16, 2023
2 parents 90485aa + 7d13e95 commit 0321bec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions core/src/views/UnifiedSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions dist/core-unified-search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-unified-search.js.map

Large diffs are not rendered by default.

0 comments on commit 0321bec

Please sign in to comment.