Fix:Update key send conditional

This commit is contained in:
Luc Mcgrady 2025-11-18 07:52:21 +00:00
parent 43484e9201
commit 6fec5b5dd6
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -94,7 +94,7 @@ addEventListener("keydown", (e) => {
},
};
if (
!document.activeElement?.matches("input[type=text], input[type=number], textarea") && e.key !== "Enter"
!document.activeElement?.matches("input[type=text], input[type=number], textarea") || e.key === "Enter"
) {
postParentMessage(keyInfo);
}