ICIJ / prophecies

An ICIJ app to conduct data validation and cleaning.
https://icij.gitbook.io/prophecies
GNU Affero General Public License v3.0
19 stars 4 forks source link

I should be able to use a shortcut to toggle notes #94

Closed pirhoo closed 3 years ago

pirhoo commented 3 years ago

To avoid conflicts I used Ctrl+Alt+N

pirhoo commented 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)
}