mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 18:22:41 -08:00
feat: replace y-j with configurable Jimaku shortcut
This commit is contained in:
@@ -13,6 +13,7 @@ export interface OverlayShortcutHandlers {
|
||||
toggleSecondarySub: () => void;
|
||||
markAudioCard: () => void;
|
||||
openRuntimeOptions: () => void;
|
||||
openJimaku: () => void;
|
||||
}
|
||||
|
||||
export function registerOverlayShortcutsService(
|
||||
@@ -118,6 +119,13 @@ export function registerOverlayShortcutsService(
|
||||
"openRuntimeOptions",
|
||||
);
|
||||
}
|
||||
if (shortcuts.openJimaku) {
|
||||
registerOverlayShortcut(
|
||||
shortcuts.openJimaku,
|
||||
() => handlers.openJimaku(),
|
||||
"openJimaku",
|
||||
);
|
||||
}
|
||||
|
||||
return registeredAny;
|
||||
}
|
||||
@@ -155,4 +163,7 @@ export function unregisterOverlayShortcutsService(
|
||||
if (shortcuts.openRuntimeOptions) {
|
||||
globalShortcut.unregister(shortcuts.openRuntimeOptions);
|
||||
}
|
||||
if (shortcuts.openJimaku) {
|
||||
globalShortcut.unregister(shortcuts.openJimaku);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user