Skip to content

Commit

Permalink
refactor: abstract event object
Browse files Browse the repository at this point in the history
  • Loading branch information
y1j2x34 committed Oct 11, 2023
1 parent 14cc1d8 commit e9b8973
Show file tree
Hide file tree
Showing 87 changed files with 84 additions and 10,609 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import {
Input,
Output
} from '@angular/core';
import { Shortcut, ShortcutEvent, ShortcutEventImpl } from '@vgerbot/shortcuts';
import {
Shortcut,
ShortcutEvent,
ShortcutEventImpl,
ShortcutKeyboardEvent
} from '@vgerbot/shortcuts';

@Component({
selector: 'shortcuts[key]',
Expand Down Expand Up @@ -47,7 +52,7 @@ export class ShortcutsKeyComponent {
event.stopPropagation();
}
const shortcut = Shortcut.from(this.shortcutKey);
if (shortcut.match(event)) {
if (shortcut.match(event as ShortcutKeyboardEvent)) {
const shortcutEvent = new ShortcutEventImpl(shortcut, event);
this.emitter.emit(shortcutEvent);
}
Expand Down
1 change: 0 additions & 1 deletion packages/core/docs/.nojekyll

This file was deleted.

113 changes: 0 additions & 113 deletions packages/core/docs/assets/highlight.css

This file was deleted.

Loading

0 comments on commit e9b8973

Please sign in to comment.