diff --git a/src/lib/hotkeys.service.ts b/src/lib/hotkeys.service.ts index bba97e5..732393e 100644 --- a/src/lib/hotkeys.service.ts +++ b/src/lib/hotkeys.service.ts @@ -25,7 +25,7 @@ export class HotkeysService { } return (element.contentEditable && element.contentEditable === 'true'); }; - this.mousetrap = new (Mousetrap as any).default(); + this.mousetrap = new (Mousetrap)(document.documentElement); this.initCheatSheet(); }