mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-22 05:16:22 -07:00
feat(overlay): discover unclaimed mpv key bindings (#246)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { MpvInputBindingsSnapshot } from './session-bindings';
|
||||
import type {
|
||||
KikuFieldGroupingChoice,
|
||||
KikuFieldGroupingRequestData,
|
||||
@@ -462,6 +463,7 @@ export interface ElectronAPI {
|
||||
setMecabEnabled: (enabled: boolean) => void;
|
||||
sendMpvCommand: (command: (string | number)[]) => void;
|
||||
getKeybindings: () => Promise<Keybinding[]>;
|
||||
getMpvInputBindings: () => Promise<MpvInputBindingsSnapshot>;
|
||||
getSessionBindings: () => Promise<CompiledSessionBinding[]>;
|
||||
getConfiguredShortcuts: () => Promise<Required<ShortcutsConfig>>;
|
||||
dispatchSessionAction: (
|
||||
|
||||
@@ -34,6 +34,11 @@ export interface SessionKeySpec {
|
||||
modifiers: SessionKeyModifier[];
|
||||
}
|
||||
|
||||
export interface MpvInputBindingsSnapshot {
|
||||
keys: string[];
|
||||
blockedKeys: SessionKeySpec[];
|
||||
}
|
||||
|
||||
export interface SessionBindingWarning {
|
||||
kind: 'unsupported' | 'conflict' | 'deprecated-config';
|
||||
path: string;
|
||||
|
||||
Reference in New Issue
Block a user