CTRL+F10 to unjam musickit
This commit is contained in:
parent
63c9e951ae
commit
8795037fc2
1 changed files with 12 additions and 0 deletions
|
@ -3555,3 +3555,15 @@ webGPU().then()
|
||||||
|
|
||||||
let screenWidth = screen.width;
|
let screenWidth = screen.width;
|
||||||
let screenHeight = screen.height;
|
let screenHeight = screen.height;
|
||||||
|
|
||||||
|
// Key bind to unjam MusicKit in case it fails: CTRL+F10
|
||||||
|
document.addEventListener('keydown', function(event) {
|
||||||
|
if (event.ctrlKey && event.keyCode == 121) {
|
||||||
|
try {
|
||||||
|
app.mk._services.mediaItemPlayback._currentPlayer.stop()
|
||||||
|
} catch (e) { }
|
||||||
|
try {
|
||||||
|
app.mk._services.mediaItemPlayback._currentPlayer.destroy()
|
||||||
|
} catch (e) { }
|
||||||
|
}
|
||||||
|
});
|
Loading…
Add table
Add a link
Reference in a new issue