mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 04:37:22 -05:00
Fix: Enter key hotkey
This commit is contained in:
parent
a4a1783bc2
commit
65f3844857
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue