From b183d216208f7109674b87ced1c5b65f320bb70b Mon Sep 17 00:00:00 2001 From: FalcoDJ <48579349+FalcoDJ@users.noreply.github.com> Date: Mon, 17 Jan 2022 00:13:08 -0500 Subject: [PATCH] Re-Added the fullscreen mod to basic_template --- WASM/basic_template.html | 44 ++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/WASM/basic_template.html b/WASM/basic_template.html index 1b2f8dd..ea7893b 100644 --- a/WASM/basic_template.html +++ b/WASM/basic_template.html @@ -20,21 +20,39 @@ canvas.emscripten { border: 0px none; background-color: black; } + canvas.addEventListener("keydown", (e) => { + if (e.key === "F11") { + openFullscreen(canvas); + } + }); + + return canvas; + })(), + }; +