mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -08:00
add event to hotkey callback
This commit is contained in:
1 parent
019092dd11
commit
9ed840b194
3 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user