From 4846e06d0f2348356c2e32ffde7f10bc39f5ae53 Mon Sep 17 00:00:00 2001 From: FlamedDogo99 <96555444+FlamedDogo99@users.noreply.github.com> Date: Thu, 6 Jun 2024 21:33:25 -0600 Subject: [PATCH] Fixed invalid key event --- eaglermobile.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eaglermobile.user.js b/eaglermobile.user.js index 337d36a..b818acc 100644 --- a/eaglermobile.user.js +++ b/eaglermobile.user.js @@ -355,7 +355,7 @@ function insertCanvasElements() { document.body.appendChild(inventoryButton); let exitButton = createTouchButton("exitButton", "inMenu"); exitButton.style.cssText = "top: 0vh; margin: auto; left: 0vh; right:8vh; width: 8vh; height: 8vh;" - exitButton.addEventListener("touchstart", function(e){keyEvent("`", "keyup")}, false); + exitButton.addEventListener("touchstart", function(e){keyEvent("`", "keydown")}, false); exitButton.addEventListener("touchend", function(e){keyEvent("`", "keyup")}, false); document.body.appendChild(exitButton); // input for keyboard button