mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
Fix: Prevent held down keys from doing repeated actions
This commit is contained in:
parent
c6a1e1d16c
commit
cd45436ec2
1 changed files with 3 additions and 0 deletions
|
|
@ -354,6 +354,9 @@ export class ReviewerState {
|
||||||
}
|
}
|
||||||
|
|
||||||
onKeyDown(e: KeyboardEvent) {
|
onKeyDown(e: KeyboardEvent) {
|
||||||
|
if (e.repeat) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.handleKeyPress(e.key, e.ctrlKey, e.shiftKey);
|
this.handleKeyPress(e.key, e.ctrlKey, e.shiftKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue