mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-20 17:01:24 -07:00
feat(overlay): run session help commands with Enter or double-click (#275)
This commit is contained in:
1 parent
4e43c5c6e1
commit
0bbd8617f4
16 files changed
+701
-49
No files matched your search
+10
-1
@@ -61,6 +61,7 @@ import type {
|
||||
ControllerConfigUpdate,
|
||||
ControllerPreferenceUpdate,
|
||||
ResolvedControllerConfig,
|
||||
SessionHelpOpenPayload,
|
||||
SessionNumericSelectionStartPayload,
|
||||
SubtitleMiningContext,
|
||||
YoutubePickerOpenPayload,
|
||||
@@ -177,7 +178,15 @@ function createLatestValueIpcListenerWithPayload<T>(
|
||||
}
|
||||
|
||||
const onOpenRuntimeOptionsEvent = createQueuedIpcListener(IPC_CHANNELS.event.runtimeOptionsOpen);
|
||||
const onOpenSessionHelpEvent = createQueuedIpcListener(IPC_CHANNELS.event.sessionHelpOpen);
|
||||
const onOpenSessionHelpEvent = createQueuedIpcListenerWithPayload<SessionHelpOpenPayload>(
|
||||
IPC_CHANNELS.event.sessionHelpOpen,
|
||||
(payload) => ({
|
||||
commandsEnabled:
|
||||
typeof payload === 'object' &&
|
||||
payload !== null &&
|
||||
(payload as Partial<SessionHelpOpenPayload>).commandsEnabled === true,
|
||||
}),
|
||||
);
|
||||
const onOpenChangelogEvent = createQueuedIpcListener(IPC_CHANNELS.event.changelogOpen);
|
||||
const onOpenCharacterDictionaryManagerEvent = createQueuedIpcListener(
|
||||
IPC_CHANNELS.event.characterDictionaryManagerOpen,
|
||||
|
||||
Reference in new issue
Block a user