2.0.0 • Published 3 years ago

ngx-keyboard-shortcuts v2.0.0

Weekly downloads
38
License
MIT
Repository
github
Last release
3 years ago

Keyboard Shortcuts

Build Status codecov Greenkeeper badge

By using simple directives ngx-keyboard-shortcuts allows you to create and implement custom keybindings events in your angular applications.

For Example:

<button [keyboardShortcut]="keyboardShortcutDef" (click)="save()">
    Save
</button>
keyboardShortcutDef: IKeyboardShortcutListenerOptions = {
    description: 'save',
    keyBinding: [KeyboardKeys.Ctrl, KeyboardKeys.Shift, 's']
};

Install

npm --save install ngx-keyboard-shortcuts.

Usage

import { NgxKeyboardShortcutModule } from 'ngx-keyboard-shortcuts';

@NgModule({
    imports: [NgxKeyboardShortcutModule.forRoot()]
})
export class AppModule {}

Demos

see the demo site https://milestechnologies.github.io/ngx-keyboard-shortcuts

Contributing

Commands

npm start Run the demo environment

npm test Run tests

npm run lint Run linter

npm run build Build the package

Built With

  • Angular - The web framework used
  • Npm - The package manager

Version

1.0.1

Contributors

Thank you to the contributors of this package.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

2.0.0

3 years ago

2.0.0-beta.0

3 years ago

2.0.0-alpha.1

3 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.1-beta.0

5 years ago