This commit is contained in:
botsy 2026-03-11 16:57:59 +00:00 committed by GitHub
commit 8fb4b01ef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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();