summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-10-16 16:05:25 +0200
committerGitHub <noreply@github.com>2023-10-16 16:05:25 +0200
commit0321bec791054bbdaf3a5a5d3f4bbad22dbb9634 (patch)
tree8de938db2dd923b76b8177c6dddeef182578cb7b /core/src
parent90485aa39c60ad229adc022f40819397e244c9e3 (diff)
parent7d13e9563be0c6670b30471577db7599f6f45abd (diff)
downloadnextcloud-server-0321bec791054bbdaf3a5a5d3f4bbad22dbb9634.tar.gz
nextcloud-server-0321bec791054bbdaf3a5a5d3f4bbad22dbb9634.zip
Merge pull request #40890 from nextcloud/fix/search/close-unified-search-second-ctrl-f
fix(search): Close unified search at the second ctrl+f
Diffstat (limited to 'core/src')
-rw-r--r--core/src/views/UnifiedSearch.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue
index 6a30ee9a0e0..7040ccd7505 100644
--- a/core/src/views/UnifiedSearch.vue
+++ b/core/src/views/UnifiedSearch.vue
@@ -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