blocking backspace from going back in history

This commit is contained in:
Jack 2020-11-29 21:24:05 +00:00
parent 48069975e7
commit 878748e0e7

View file

@ -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 =