mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
Merge 041748ef71 into c3f67454ff
This commit is contained in:
commit
8fb4b01ef6
2 changed files with 14 additions and 0 deletions
|
|
@ -103,6 +103,11 @@
|
|||
"name": "statisticsMenu",
|
||||
"label": "SETTINGS_SHORTCUT_MENU_STATISTICS",
|
||||
"combos": [["D"]]
|
||||
},
|
||||
{
|
||||
"name": "playNext",
|
||||
"label": "SETTINGS_SHORTCUT_MENU_PLAY_NEXT",
|
||||
"combos": [["Shift", "N"]]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue