Skip to content

Commit

Permalink
fix(80) update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri Katz committed Jul 21, 2020
1 parent ddde8e7 commit a45fd20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Compatible with Angular 5+
* [Keyboardshortcuts](#ng-keyboard-shortcuts)
* [HelpScreen](#ng-keyboard-shortcuts-help)
* [Directive](#directive)
* [ngKeyboardShortcut](#ngKeyboardShortcut)
* [ngKeyboardShortcuts](#ngKeyboardShortcuts)
* [Service](#service)
* [KeyboardShortcutsHelpService](#KeyboardShortcutsHelpService)
* [KeyboardShortcutsSelectService](#KeyboardShortcutsSelectService)
Expand Down Expand Up @@ -288,13 +288,13 @@ export class AppComponent {
```

## Directive
### ngKeyboardShortcut
### ngKeyboardShortcuts
Directive that can only be used for focusable elements, such as textarea, select, input, etc...

#### Inputs
| Name | Type | default | description |
|----------|:-------------:|-----------------: |:-------------:|
| ngKeyboardShortcut | ```Shortcut``` / ```Shortcut``` | [] | List of shortcuts see [types](#shortcut) |
| ngKeyboardShortcuts | ```Shortcut``` / ```Shortcut``` | [] | List of shortcuts see [types](#shortcut) |
| disabled | `boolean` | `false` | disable the shortcuts for the directive |
| disableScrolling | `boolean` | `true` | disable body scrolling while modal is open |

Expand All @@ -306,7 +306,7 @@ import { ShortcutInput, ShortcutEventOutput, KeyboardShortcutsComponent } from "

@Component({
selector: 'demo-component',
template: "<input [ngKeyboardShortcut]="shortcuts" />"
template: "<input [ngKeyboardShortcuts]="shortcuts" />"
})
export class DemoComponent implements AfterViewInit {

Expand Down

0 comments on commit a45fd20

Please sign in to comment.