mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-01 17:25:23 +08:00
only stopping code execution instead of preventing default
closes #3734
This commit is contained in:
parent
d79ad414eb
commit
56e3943c04
2 changed files with 2 additions and 2 deletions
|
@ -387,7 +387,7 @@ $("#commandLine input").on("input", () => {
|
|||
|
||||
$(document).ready(() => {
|
||||
$(document).on("keydown", (event) => {
|
||||
if (PageTransition.get()) return event.preventDefault();
|
||||
if (PageTransition.get()) return;
|
||||
// opens command line if escape or ctrl/cmd + shift + p
|
||||
if (
|
||||
((event.key === "Escape" && Config.quickRestart !== "esc") ||
|
||||
|
|
|
@ -763,7 +763,7 @@ function handleTab(event: JQuery.KeyDownEvent, popupVisible: boolean): void {
|
|||
}
|
||||
|
||||
$(document).keydown(async (event) => {
|
||||
if (ActivePage.get() == "loading") return event.preventDefault();
|
||||
if (ActivePage.get() == "loading") return;
|
||||
|
||||
//autofocus
|
||||
const wordsFocused: boolean = $("#wordsInput").is(":focus");
|
||||
|
|
Loading…
Reference in a new issue