feat: replace y-j with configurable Jimaku shortcut

This commit is contained in:
2026-02-09 21:28:56 -08:00
parent 31d90b0296
commit 5c600b0cbe
15 changed files with 276 additions and 12 deletions

View File

@@ -1953,7 +1953,6 @@ const CHORD_MAP = new Map<string, ChordAction>([
["KeyR", { type: "mpv", command: ["script-message", "subminer-restart"] }],
["KeyC", { type: "mpv", command: ["script-message", "subminer-status"] }],
["KeyY", { type: "mpv", command: ["script-message", "subminer-menu"] }],
["KeyJ", { type: "electron", action: () => openJimakuModal() }],
[
"KeyD",
{ type: "electron", action: () => window.electronAPI.toggleDevTools() },
@@ -2398,6 +2397,9 @@ async function init(): Promise<void> {
window.electronAPI.notifyOverlayModalClosed("runtime-options");
});
});
window.electronAPI.onOpenJimaku(() => {
openJimakuModal();
});
window.electronAPI.onSubsyncManualOpen((payload: SubsyncManualPayload) => {
openSubsyncModal(payload);
});