diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue index 2adf818b1816e..1a220c32bc2ef 100644 --- a/core/src/views/UnifiedSearch.vue +++ b/core/src/views/UnifiedSearch.vue @@ -35,6 +35,10 @@ export default { }, mounted() { console.debug('Unified search initialized!') + window.addEventListener('keydown', this.handleKeyDown) + }, + beforeDestroy() { + window.removeEventListener('keydown', this.handleKeyDown) }, methods: { toggleUnifiedSearch() { @@ -43,6 +47,12 @@ export default { handleModalVisibilityChange(newVisibilityVal) { this.showUnifiedSearch = newVisibilityVal }, + handleKeyDown(event) { + if (event.ctrlKey && event.key === 'f') { + event.preventDefault() + this.showUnifiedSearch = true + } + }, }, }