Implemented focus for active channel in channel list

This commit is contained in:
Trevor Mears
2025-12-28 20:15:26 -08:00
parent e8bfb56c8b
commit 44365c4dad
3 changed files with 73 additions and 17 deletions
+6 -8
View File
@@ -464,20 +464,18 @@ class VideoPlayer {
this.video.muted = !this.video.muted;
break;
case 'ArrowUp':
e.preventDefault();
if (this.settings.arrowKeysChangeChannel) {
this.channelUp();
} else {
if (!this.settings.arrowKeysChangeChannel) {
e.preventDefault();
this.video.volume = Math.min(1, this.video.volume + 0.1);
}
// If arrowKeysChangeChannel is true, let HomePage handle it
break;
case 'ArrowDown':
e.preventDefault();
if (this.settings.arrowKeysChangeChannel) {
this.channelDown();
} else {
if (!this.settings.arrowKeysChangeChannel) {
e.preventDefault();
this.video.volume = Math.max(0, this.video.volume - 0.1);
}
// If arrowKeysChangeChannel is true, let HomePage handle it
break;
case 'ArrowLeft':
e.preventDefault();