Documentation

Shortcuts

add #

Arguments
keys String
options Object

Adds a keyboard shortcut for the plugin method.

this.app.shortcuts.add('ctrl+j, meta+j', {
    command: 'myplugin.toggle',
    params: { arg: val }
});

Here is more about how to do this.