diff --git a/qt/aqt/data/web/js/reviewer.ts b/qt/aqt/data/web/js/reviewer.ts index a46d876f4..92fb7ee2a 100644 --- a/qt/aqt/data/web/js/reviewer.ts +++ b/qt/aqt/data/web/js/reviewer.ts @@ -173,7 +173,8 @@ function _drawMark(mark: boolean): 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"); } }