mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
support numpad enter in type answer
https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/149
regression introduced in f4f0298378
This commit is contained in:
parent
60f6fcccdc
commit
33afe8aa32
1 changed files with 2 additions and 1 deletions
|
|
@ -173,7 +173,8 @@ function _drawMark(mark: boolean): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _typeAnsPress(): void {
|
function _typeAnsPress(): void {
|
||||||
if ((window.event as KeyboardEvent).code === "Enter") {
|
const code = (window.event as KeyboardEvent).code;
|
||||||
|
if (["Enter", "NumpadEnter"].includes(code)) {
|
||||||
pycmd("ans");
|
pycmd("ans");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue