From e82591d34f6d401199750360f8436bf411f8ed46 Mon Sep 17 00:00:00 2001 From: Jett Gentes <146028226+SUPERDERP1@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:51:36 -0800 Subject: [PATCH] f --- scripts/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/script.js b/scripts/script.js index 63ad9fa..c74e32e 100644 --- a/scripts/script.js +++ b/scripts/script.js @@ -57,6 +57,7 @@ document.getElementById("inputForm").addEventListener("submit", (event) => { // Invalid command for the current directory console.error("Unknown command:", input); return false; + inputField.value = ""; } // Update the cmd history @@ -96,7 +97,7 @@ function processCommand(command) { updateSemicolonsDisplay(); } - +document.getElementById("text").addEventListener('paste',e=>e.preventDefault) // Function to update semicolon display dynamically function updateSemicolonsDisplay() { const display = document.getElementById("semicolonsDisplay");