Skip to content

Commit

Permalink
Change shortcut listener binding
Browse files Browse the repository at this point in the history
  • Loading branch information
hata6502 committed Nov 21, 2020
1 parent b134fcc commit 0df3efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/modules/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class Shortcuts extends Module {
public add(shortcut: ShortcutData): void {
const newShortcut = new Shortcut({
name: shortcut.name,
on: document, // UI.nodes.redactor
on: this.Editor.UI.nodes.redactor,
callback: shortcut.handler,
});

Expand Down

0 comments on commit 0df3efb

Please sign in to comment.