KeepPlayerFocus pref, rework prefs page, always autoplay if you click on the next track

This commit is contained in:
Laptop
2025-02-26 22:48:26 +02:00
parent 3718ef7e66
commit 7a044a2dec
7 changed files with 170 additions and 132 deletions

View File

@@ -0,0 +1,9 @@
var audio = document.getElementById('track');
audio.onblur = function (e) {
if (e.target != e.relatedTarget) {
setTimeout(function() {
e.target.focus({preventScroll: true, focusVisible: false});
})
}
}
audio.focus({focusVisible: false});