Getting Started
An Angular module that provides a declarative API using components/directive to manage Keyboard shortcuts in scalable way.
This documentation is for version 7.0.0+ (8,9) and any future versions. For older versions (2.0.0/6.0.0) please click here
See demo here:
demo
Install:
NPM
npm install --save ng-keyboard-shortcuts
Yarn
yarn add ng-keyboard-shortcuts
Setup:
import { KeyboardShortcutsModule } from 'ng-keyboard-shortcuts';
@NgModule({
declarations: [
],
imports: [
BrowserModule,
KeyboardShortcutsModule.forRoot()
],
bootstrap: [AppComponent]
})
export class AppModule {
}