mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-07 03:19:13 +08:00
fix: home and end keys not ignored during test, causing desync
closes #6053
This commit is contained in:
parent
aba935448f
commit
a3e3de47f5
2 changed files with 3 additions and 0 deletions
|
|
@ -5,4 +5,6 @@ export const IgnoredKeys = [
|
|||
"AudioVolumeUp",
|
||||
"AudioVolumeDown",
|
||||
"AudioVolumeMute",
|
||||
"Home",
|
||||
"End",
|
||||
];
|
||||
|
|
|
|||
|
|
@ -904,6 +904,7 @@ $(document).on("keydown", async (event) => {
|
|||
console.debug(
|
||||
`Key ${event.key} is on the list of ignored keys. Stopping keydown event.`
|
||||
);
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue