Update hotkey.js

This commit is contained in:
Harvey committed 2020-09-21 09:35:52 +08:00
1 parent 150052f50b
commit 956c77c376
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ export default class Hotkey {
const events = this.keys[event.keyCode];
if (events) {
event.preventDefault();
events.forEach((fn) => fn());
events.forEach((fn) => fn.call(art));
art.emit('hotkey', event);
}
}