mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 03:32:31 +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"),
|
condition: t("global.keyboardShortcuts.conditions.whenPaused"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "N",
|
key: "P",
|
||||||
description: t("global.keyboardShortcuts.shortcuts.nextEpisode"),
|
description: t("global.keyboardShortcuts.shortcuts.nextEpisode"),
|
||||||
condition: t("global.keyboardShortcuts.conditions.showsOnly"),
|
condition: t("global.keyboardShortcuts.conditions.showsOnly"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "P",
|
key: "O",
|
||||||
description: t("global.keyboardShortcuts.shortcuts.previousEpisode"),
|
description: t("global.keyboardShortcuts.shortcuts.previousEpisode"),
|
||||||
condition: t("global.keyboardShortcuts.conditions.showsOnly"),
|
condition: t("global.keyboardShortcuts.conditions.showsOnly"),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -521,8 +521,8 @@ export function KeyboardEvents() {
|
||||||
if (k === "Escape") dataRef.current.router.close();
|
if (k === "Escape") dataRef.current.router.close();
|
||||||
|
|
||||||
// Episode navigation (shows only)
|
// Episode navigation (shows only)
|
||||||
if (keyL === "n") dataRef.current.navigateToNextEpisode();
|
if (keyL === "p") dataRef.current.navigateToNextEpisode();
|
||||||
if (keyL === "p") dataRef.current.navigateToPreviousEpisode();
|
if (keyL === "o") dataRef.current.navigateToPreviousEpisode();
|
||||||
|
|
||||||
// captions
|
// captions
|
||||||
if (keyL === "c") dataRef.current.toggleLastUsed().catch(() => {}); // ignore errors
|
if (keyL === "c") dataRef.current.toggleLastUsed().catch(() => {}); // ignore errors
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue