From 53566d9ad0a7b84d13c49ada8f7794cbd1fcd988 Mon Sep 17 00:00:00 2001 From: PeytonPlayz595 <106421860+PeytonPlayz595@users.noreply.github.com> Date: Sun, 25 Feb 2024 01:23:13 -0500 Subject: [PATCH] Forgot to add some code -_- --- offline_download/Alpha_Offline_Download.html | 15 +++++++++++ .../adapter/EaglerAdapterImpl2.java | 3 --- web/index.html | 25 +++++++++++++++---- 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/offline_download/Alpha_Offline_Download.html b/offline_download/Alpha_Offline_Download.html index a3f372c..3292c0c 100644 --- a/offline_download/Alpha_Offline_Download.html +++ b/offline_download/Alpha_Offline_Download.html @@ -8,6 +8,21 @@ window.addEventListener("load", function() { "game_frame",createAssetURI("assets"), ]; main(); }); + + document.esc = false; + document.addEventListener('keydown', function(e) { + if (e.key === 'Escape') { + e.preventDefault(); + document.esc = true; + } + }); + + document.addEventListener('keyup', function(e) { + if (e.key === 'Escape') { + e.preventDefault(); + document.esc = false; + } + }); + window.addEventListener("load", function() { + window.classicConfig = ["game","resources.mc"]; + main(); + }); + + document.esc = false; + document.addEventListener('keydown', function(e) { + if (e.key === 'Escape') { + e.preventDefault(); + document.esc = true; + } + }); + + document.addEventListener('keyup', function(e) { + if (e.key === 'Escape') { + e.preventDefault(); + document.esc = false; + } + }); +