aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/messageTypes.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-06-06 17:09:34 -0400
committerAjay <[email protected]>2022-06-06 17:09:34 -0400
commit32a3cb2cfeefa9e4f9d06e56e1e3cc3e5669b892 (patch)
tree6b05541c9dca88ba6937bbbc3889fe23df02fe15 /src/messageTypes.ts
parentd9970bf1104ba5d5e7eb564baee87d688ea91f2e (diff)
downloadSponsorBlock-32a3cb2cfeefa9e4f9d06e56e1e3cc3e5669b892.tar.gz
SponsorBlock-32a3cb2cfeefa9e4f9d06e56e1e3cc3e5669b892.zip
Forward key presses from popup
Diffstat (limited to 'src/messageTypes.ts')
-rw-r--r--src/messageTypes.ts14
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;