diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-10-12 18:16:52 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-10-16 00:30:31 +0200 |
commit | 7d13e9563be0c6670b30471577db7599f6f45abd (patch) | |
tree | d78be4c1f707d7bdddd0a01819fe420a945ef40c /core/src | |
parent | 7e2c51204b05f869d9dcfe9608d9927e3db1bd0f (diff) | |
download | nextcloud-server-7d13e9563be0c6670b30471577db7599f6f45abd.tar.gz nextcloud-server-7d13e9563be0c6670b30471577db7599f6f45abd.zip |
fix(search): Close unified search at the second ctrl+f
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/views/UnifiedSearch.vue | 3 |
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 |