Fix: Enter key hotkey

This commit is contained in:
Luc Mcgrady 2025-11-04 21:11:36 +00:00
parent a4a1783bc2
commit 65f3844857
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

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