Updated temp log

Sorry for the spam
This commit is contained in:
FlamedDogo99 2024-06-09 19:32:16 -06:00
parent 71571b3771
commit f561557c3e

View File

@ -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