mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 13:55:19 +08:00
Merge pull request #844 from SeerLite/acc-keypress
Update live accuracy on keypress
This commit is contained in:
commit
713185e7f5
1 changed files with 7 additions and 2 deletions
|
@ -2767,8 +2767,6 @@ function startTest() {
|
|||
100
|
||||
);
|
||||
|
||||
updateLiveAcc(acc);
|
||||
|
||||
if (activeFunBox === "layoutfluid" && config.mode === "time") {
|
||||
const layouts = ["qwerty", "dvorak", "colemak"];
|
||||
let index = 0;
|
||||
|
@ -4751,6 +4749,13 @@ $(document).keydown(function (event) {
|
|||
if (wordsFocused) {
|
||||
handleAlpha(event);
|
||||
}
|
||||
|
||||
let acc = Misc.roundTo2(
|
||||
(accuracyStats.correct /
|
||||
(accuracyStats.correct + accuracyStats.incorrect)) *
|
||||
100
|
||||
);
|
||||
updateLiveAcc(acc);
|
||||
});
|
||||
|
||||
function handleTab(event) {
|
||||
|
|
Loading…
Reference in a new issue