mirror of
https://github.com/ankitects/anki.git
synced 2026-01-08 03:23:54 -05:00
Patch: Prevent default on enter
This commit is contained in:
parent
8d3179c507
commit
11e111e9b8
1 changed files with 3 additions and 0 deletions
|
|
@ -360,6 +360,9 @@ export class ReviewerState {
|
||||||
if (e.repeat) {
|
if (e.repeat) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (e.key == "Enter") {
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
this.handleKeyPress(e.key, e.ctrlKey, e.shiftKey);
|
this.handleKeyPress(e.key, e.ctrlKey, e.shiftKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue