mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
feat: replace y-j with configurable Jimaku shortcut
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user