Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
if (event.ctrlKey && event.code === 'KeyF') {
// only handle search if not already open - in this case the browser native search should be used
if (!this.showLocalSearch && !this.showUnifiedSearch) {
- this.toggleUnifiedSearch()
event.preventDefault()
}
+ this.toggleUnifiedSearch()
}
},
*/
toggleUnifiedSearch() {
if (this.supportsLocalSearch) {
- this.showLocalSearch = true
+ this.showLocalSearch = !this.showLocalSearch
} else {
- this.openModal()
+ this.showUnifiedSearch = !this.showUnifiedSearch
+ this.showLocalSearch = false
}
},