keyPress -> keypress

This commit is contained in:
Luc Mcgrady 2025-10-31 17:26:07 +00:00
parent e16a49d376
commit dae91bd1d8
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
3 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ addEventListener("message", async (e: MessageEvent<InnerReviewerRequest>) => {
addEventListener("keydown", (e) => {
if (e.key.length == 1 && "1234 ".includes(e.key) && !document.activeElement?.matches("#typeans")) {
postParentMessage({ type: "keyPress", key: e.key });
postParentMessage({ type: "keypress", key: e.key });
}
});

View file

@ -56,7 +56,7 @@ export class ReviewerState {
this.currentTypedAnswer = e.data.value;
break;
}
case "keyPress": {
case "keypress": {
this.handleKeyPress(e.data.key);
break;
}

View file

@ -12,7 +12,7 @@ interface UpdateTypedAnswerMessage {
}
interface KeyPressMessage {
type: "keyPress";
type: "keypress";
key: string;
}