Update live accuracy on keypress

This commit is contained in:
SeerLite 2021-01-14 15:34:57 -03:00
parent 4ddeac4a0d
commit 63af71652e

View file

@ -2767,8 +2767,6 @@ function startTest() {
100
);
updateLiveAcc(acc);
if (activeFunBox === "layoutfluid" && config.mode === "time") {
const layouts = ["qwerty", "dvorak", "colemak"];
let index = 0;
@ -4746,6 +4744,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) {