diff --git a/eaglermobile.user.js b/eaglermobile.user.js index b5cd5e5..5b12782 100644 --- a/eaglermobile.user.js +++ b/eaglermobile.user.js @@ -386,12 +386,15 @@ function insertCanvasElements() { hiddenInput.id = "hiddenInput" hiddenInput.classList.add("inMenu") // We are hiding the text input behind button because opacity was causing problems. - hiddenInput.style.cssText = "position:absolute;top: 0vh; margin: auto; left: 8vh; right:0vh; width: 8vh; height: 8vh;font-size:20px;z-index:-10;color: transparent;text-shadow: 0 0 0 black;"; + //TEMP REVERT + //hiddenInput.style.cssText = "position:absolute;top: 0vh; margin: auto; left: 8vh; right:0vh; width: 8vh; height: 8vh;font-size:20px;z-index:-10;color: transparent;text-shadow: 0 0 0 black;"; + + hiddenInput.style.cssText = "position:absolute;top: 0vh; margin: auto; left: 8vh; right:0vh; width: 8vh; height: 8vh;font-size:20px;z-index:10"; hiddenInput.value = " " //Allows delete to be detected before input is changed hiddenInput.addEventListener("input", function(e) { e.preventDefault(true); let inputData = e.data == null ? "delete" : e.data.slice(-1); - console.log("Received input!", inputData, e.inputType) + console.log(`Received input by ${e.inputType}: ${e.data} -> ${inputData}`); window.lastKey = inputData hiddenInput.value = " "; // We need a character to detect deleting