Keyboard Shortcuts

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.