Closed pirhoo closed 3 years ago
To implement this I used a custom Vue plugin to bind shortcut to the component instance:
created () {
// ...
this.$shortkey.bind('ctrl+l', () => this.openLink())
this.$shortkey.bind('ctrl+alt+n', () => this.toggleNotes())
// Activate or deactivate shortcuts for this component
this.$shortkey.toggle(this.active)
}
To avoid conflicts I used
Ctrl+Alt+N