mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
blocking backspace from going back in history
This commit is contained in:
parent
48069975e7
commit
878748e0e7
1 changed files with 5 additions and 0 deletions
|
@ -4260,6 +4260,11 @@ $(document).keydown((event) => {
|
|||
}
|
||||
}
|
||||
|
||||
//blocking firefox from going back in history with backspace
|
||||
if (event.key === "Backspace") {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
//only for the typing test
|
||||
if ($("#wordsInput").is(":focus")) {
|
||||
const isBackspace =
|
||||
|
|
Loading…
Reference in a new issue