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 113e895 commit d056a0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/editor.js

Large diffs are not rendered by default.

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 d056a0e

Please sign in to comment.