Module: @bldr/vue-plugin-shortcuts

@bldr/vue-plugin-shortcuts

Wrapper functions around mousetrap.

A instance of the class Shortcuts is mounted under this.$shortcuts in the Vue apps.

Classes

Shortcuts

Type Definitions

shortcutSpec Object

Properties:
Name Type Description
shortcutSpec.keys String

Mousetrap key specification, see the documentation.

shortcutSpec.callback function

A callback function.

shortcutSpec.description String

Some text to describe the shortcut.

shortcutSpec.routeNames Array

A list of route names. Activate this shortcut only on this routes.