add event to hotkey callback

This commit is contained in:
Harvey committed 2021-12-03 09:17:24 +08:00
1 parent 019092dd11
commit 9ed840b194
3 files changed
+3 -3

No files matched your search

+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.call(art));
events.forEach((fn) => fn.call(art, event));
art.emit('hotkey', event);
}
}