mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 12:11:20 -08:00
Update hotkey.js
This commit is contained in:
1 parent
150052f50b
commit
956c77c376
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user