From 43c2b5601e053295e228d8f5ed51599033a3ca16 Mon Sep 17 00:00:00 2001 From: FlamedDogo99 <96555444+FlamedDogo99@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:18:32 -0600 Subject: [PATCH] Changed shift key test --- eaglermobile.user.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eaglermobile.user.js b/eaglermobile.user.js index 51e3806..f0075e5 100644 --- a/eaglermobile.user.js +++ b/eaglermobile.user.js @@ -442,10 +442,13 @@ function insertCanvasElements() { let inventoryButton = createTouchButton("inventoryButton", "inGame"); inventoryButton.style.cssText = "right:0vh;bottom:30vh;" inventoryButton.addEventListener("touchstart", function(e) { - keyEvent("shift", "keyup"); // Sometimes shift gets stuck on, which interferes with item manipulation in GUI's keyEvent("e", "keydown"); }, false); - inventoryButton.addEventListener("touchend", function(e){keyEvent("e", "keyup")}, false); + inventoryButton.addEventListener("touchend", function(e){ + keyEvent("shift", "keydown"); // Sometimes shift gets stuck on, which interferes with item manipulation in GUI's + keyEvent("shift", "keyup"); // Sometimes shift gets stuck on, which interferes with item manipulation in GUI's + keyEvent("e", "keyup"); + }, false); document.body.appendChild(inventoryButton); let exitButton = createTouchButton("exitButton", "inMenu"); exitButton.style.cssText = "top: 0vh; margin: auto; left: 0vh; right:8vh; width: 8vh; height: 8vh;"