This package has been deprecated

Author message:

package is no longer maintained

@wildebeest/keyboard-shortcuts
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Keyboadr Shortcuts Module

Add keyboard shortcuts to your application

Installation

npm install --save @wildebeest/keyboard-shortcuts

Requirements

It's usefull to know these libraries:

  • inversify
  • @wildebeest/js-modules

Usage

Create Application

let app: Application();
app.run([KeyboardShortcutsModule]);

Name your shortcut

let keyboardShortcutsService = app.getContainer().get(KeyboardShortcutsService);
keyboardShortcutsService.nameShortcuts("open file", "ctrl+o");

Listen for a shortcut to be pressed

keyboardShortcutsService.on("open file", (event: any) => {
    // do something
});

Package Sidebar

Install

npm i @wildebeest/keyboard-shortcuts

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

16.8 kB

Total Files

19

Last publish

Collaborators

  • pipan