mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -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) {
|
||||
if (e.repeat) {
|
||||
return;
|
||||
}
|
||||
this.handleKeyPress(e.key, e.ctrlKey, e.shiftKey);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue