feat(Player): added shortcut for next episode

This commit is contained in:
Botzy 2026-03-11 18:56:32 +02:00
parent c3f67454ff
commit 041748ef71
2 changed files with 14 additions and 0 deletions

View file

@ -103,6 +103,11 @@
"name": "statisticsMenu",
"label": "SETTINGS_SHORTCUT_MENU_STATISTICS",
"combos": [["D"]]
},
{
"name": "playNext",
"label": "SETTINGS_SHORTCUT_MENU_PLAY_NEXT",
"combos": [["Shift", "N"]]
}
]
}

View file

@ -725,6 +725,15 @@ const Player = ({ urlParams, queryParams }) => {
}
}, [player.selected, streamingServer.statistics, toggleStatisticsMenu]);
onShortcut('playNext', () => {
closeMenus();
if (window.playerNextVideo !== null) {
nextVideo();
const deepLinks = window.playerNextVideo.deepLinks;
handleNextVideoNavigation(deepLinks, false, false);
}
}, []);
onShortcut('exit', () => {
closeMenus();
!settings.escExitFullscreen && window.history.back();