File tree Expand file tree Collapse file tree
frontend/src/ts/test/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import { calculateWpm } from "../../utils/numbers";
1414import { mean , roundTo2 } from "@monkeytype/util/numbers" ;
1515import { InputEvent , TestEvent } from "./types" ;
1616import { Config } from "../../config/store" ;
17- import { Keycode } from "../../constants/keys" ;
1817
1918function getTimerBoundaries ( events : TestEvent [ ] ) : number [ ] {
2019 const boundaries : number [ ] = [ ] ;
@@ -497,7 +496,7 @@ export function forceReleaseAllKeys(): void {
497496
498497 for ( const [ key , { timestamp } ] of getPressedKeys ( ) . entries ( ) ) {
499498 logTestEvent ( "keyup" , timestamp + avg , {
500- code : key as Keycode | "NoCode" | `NoCode${ number } ` , //entries is not picking up the type
499+ code : key , //entries is not picking up the type
501500 ctrl : false ,
502501 shift : false ,
503502 alt : false ,
You can’t perform that action at this time.
0 commit comments