mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Fix:Update key send conditional
This commit is contained in:
parent
43484e9201
commit
6fec5b5dd6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue