mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
change next and prev keyboard shortcuts
This commit is contained in:
parent
869e4fca78
commit
eca44987f7
2 changed files with 4 additions and 4 deletions
|
|
@ -54,12 +54,12 @@ const getShortcutGroups = (t: (key: string) => string): ShortcutGroup[] => [
|
|||
condition: t("global.keyboardShortcuts.conditions.whenPaused"),
|
||||
},
|
||||
{
|
||||
key: "N",
|
||||
key: "P",
|
||||
description: t("global.keyboardShortcuts.shortcuts.nextEpisode"),
|
||||
condition: t("global.keyboardShortcuts.conditions.showsOnly"),
|
||||
},
|
||||
{
|
||||
key: "P",
|
||||
key: "O",
|
||||
description: t("global.keyboardShortcuts.shortcuts.previousEpisode"),
|
||||
condition: t("global.keyboardShortcuts.conditions.showsOnly"),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -521,8 +521,8 @@ export function KeyboardEvents() {
|
|||
if (k === "Escape") dataRef.current.router.close();
|
||||
|
||||
// Episode navigation (shows only)
|
||||
if (keyL === "n") dataRef.current.navigateToNextEpisode();
|
||||
if (keyL === "p") dataRef.current.navigateToPreviousEpisode();
|
||||
if (keyL === "p") dataRef.current.navigateToNextEpisode();
|
||||
if (keyL === "o") dataRef.current.navigateToPreviousEpisode();
|
||||
|
||||
// captions
|
||||
if (keyL === "c") dataRef.current.toggleLastUsed().catch(() => {}); // ignore errors
|
||||
|
|
|
|||
Loading…
Reference in a new issue