From 6f3baabbb2ccf7fd2e559523b74b2f504a0ea108 Mon Sep 17 00:00:00 2001 From: Dionisio Date: Fri, 13 Feb 2026 22:38:26 +0100 Subject: [PATCH] fix(ui): close About modal on ESC key press Add keydown listener for Escape to dismiss the About OxiCloud modal overlay, matching standard modal behavior. Fixes #98 --- static/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/app.js b/static/js/app.js index ce715d67..5df43ba4 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -242,6 +242,11 @@ function setupUserMenu() { aboutOverlay.classList.remove('show'); } }); + document.addEventListener('keydown', (e) => { + if (e.key === 'Escape' && aboutOverlay.classList.contains('show')) { + aboutOverlay.classList.remove('show'); + } + }); } // Fetch version from backend (centralized in Cargo.toml)