Add the alternate search keyboard shortcuts COMMAND+L on MacOS and CTRL+L on other platforms (#2175)
This commit is contained in:
parent
b3ee24ecf3
commit
4ef26df7a0
|
@ -312,6 +312,12 @@ export default Vue.extend({
|
||||||
case 'Tab':
|
case 'Tab':
|
||||||
this.hideOutlines = false
|
this.hideOutlines = false
|
||||||
break
|
break
|
||||||
|
case 'KeyL':
|
||||||
|
if ((process.platform !== 'darwin' && event.ctrlKey) ||
|
||||||
|
(process.platform === 'darwin' && event.metaKey)) {
|
||||||
|
this.$refs.topNav.focusSearch()
|
||||||
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue