Merge pull request #844 from SeerLite/acc-keypress

Update live accuracy on keypress
This commit is contained in:
Jack 2021-01-14 21:40:37 +00:00 committed by GitHub
commit 713185e7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
@ -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) {