From a14d301ce11f653b8723becf1399610f532b96fb Mon Sep 17 00:00:00 2001 From: FlamedDogo99 <96555444+FlamedDogo99@users.noreply.github.com> Date: Sun, 2 Jun 2024 10:12:10 -0500 Subject: [PATCH] Quick fix for android keyboard See issue tracker --- eaglermobile.user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eaglermobile.user.js b/eaglermobile.user.js index fb8ae8c..146bf8c 100644 --- a/eaglermobile.user.js +++ b/eaglermobile.user.js @@ -6,7 +6,7 @@ // @downloadURL https://raw.githubusercontent.com/FlamedDogo99/EaglerMobile/main/eaglermobile.user.js // @license Apache License 2.0 - http://www.apache.org/licenses/ // @match https://eaglercraft.com/mc/* -// @version 2.2 +// @version 2.3 // @updateURL https://raw.githubusercontent.com/FlamedDogo99/EaglerMobile/main/eaglermobile.user.js // @run-at document-start // ==/UserScript== @@ -311,8 +311,10 @@ function insertCanvasElements() { document.body.appendChild(exitButton); // input for keyboard button let hiddenInput = document.createElement('input', true); + hiddenInput.type = "text" hiddenInput.id = "hiddenInput" - hiddenInput.style.cssText = "opacity:0;z-index:-99999"; + // hiding behind button for opacity issues + hiddenInput.style.cssText = "z-index: -999; top: 0vh; margin: auto; left: 8vh; right:0vh; width: 8vh; height: 8vh;"; document.body.appendChild(hiddenInput); let keyboardButton = createTouchButton("keyboardButton", "inMenu"); keyboardButton.style.cssText = "top: 0vh; margin: auto; left: 8vh; right:0vh; width: 8vh; height: 8vh;"