mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
fix(layout emulator): emulator returning stringified event codes (like "Escape")
This commit is contained in:
parent
0566280bc4
commit
84fe80bbc1
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ export async function getCharFromEvent(
|
|||
Misc.createErrorMessage(e, "Failed to emulate event"),
|
||||
-1
|
||||
);
|
||||
return event.key;
|
||||
return null;
|
||||
}
|
||||
|
||||
let keyEventCodes: string[] = [];
|
||||
|
|
@ -214,7 +214,7 @@ export async function getCharFromEvent(
|
|||
if (char) {
|
||||
return char;
|
||||
} else {
|
||||
return event.key;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue