Skip to content

Trigger

type Trigger =
| {
combo: string;
kind: "keyboard.shortcut";
parts: {
key: string;
mods: Set<ModifierKey>;
};
}
| {
char: string;
kind: "keyboard.character";
}
| {
key: string;
kind: "keyboard.key";
}
| {
action: "cut" | "copy" | "paste";
kind: "clipboard.action";
};

Defined in: triggers.ts:6