Add the alternate search keyboard shortcuts COMMAND+L on MacOS and CTRL+L on other platforms (#2175)

This commit is contained in:
absidue 2022-04-09 21:43:17 +02:00 committed by GitHub
parent b3ee24ecf3
commit 4ef26df7a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -312,6 +312,12 @@ export default Vue.extend({
case 'Tab':
this.hideOutlines = false
break
case 'KeyL':
if ((process.platform !== 'darwin' && event.ctrlKey) ||
(process.platform === 'darwin' && event.metaKey)) {
this.$refs.topNav.focusSearch()
}
break
}
},