fix(search): Close unified search at the second ctrl+f

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/40890/head
Christoph Wurst 2 years ago committed by Ferdinand Thiessen
parent 7e2c51204b
commit 7d13e9563b
  1. 3
      core/src/views/UnifiedSearch.vue
  2. 4
      dist/core-unified-search.js
  3. 2
      dist/core-unified-search.js.map

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save