diff options
author | Ajay <[email protected]> | 2022-06-06 17:09:34 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-06-06 17:09:34 -0400 |
commit | 32a3cb2cfeefa9e4f9d06e56e1e3cc3e5669b892 (patch) | |
tree | 6b05541c9dca88ba6937bbbc3889fe23df02fe15 /src/messageTypes.ts | |
parent | d9970bf1104ba5d5e7eb564baee87d688ea91f2e (diff) | |
download | SponsorBlock-32a3cb2cfeefa9e4f9d06e56e1e3cc3e5669b892.tar.gz SponsorBlock-32a3cb2cfeefa9e4f9d06e56e1e3cc3e5669b892.zip |
Forward key presses from popup
Diffstat (limited to 'src/messageTypes.ts')
-rw-r--r-- | src/messageTypes.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/messageTypes.ts b/src/messageTypes.ts index 470c95a6..65e5c612 100644 --- a/src/messageTypes.ts +++ b/src/messageTypes.ts @@ -47,7 +47,19 @@ interface CopyToClipboardMessage { text: string; } -export type Message = BaseMessage & (DefaultMessage | BoolValueMessage | IsInfoFoundMessage | SubmitVoteMessage | HideSegmentMessage | CopyToClipboardMessage); +interface KeyDownMessage { + message: "keydown"; + key: string; + keyCode: number; + code: string; + which: number; + shiftKey: boolean; + ctrlKey: boolean; + altKey: boolean; + metaKey: boolean; +} + +export type Message = BaseMessage & (DefaultMessage | BoolValueMessage | IsInfoFoundMessage | SubmitVoteMessage | HideSegmentMessage | CopyToClipboardMessage | KeyDownMessage); export interface IsInfoFoundMessageResponse { found: boolean; |