From e231529a4752587212e7a5e4a6c5c2d2e3c2d74d Mon Sep 17 00:00:00 2001 From: Dettomi <142365778+Dettomi@users.noreply.github.com> Date: Sat, 7 Mar 2026 03:48:50 +0100 Subject: [PATCH] Fix options, servers, profile buttons staying on screen --- renderer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderer.js b/renderer.js index 1dbb296..f77e5a8 100644 --- a/renderer.js +++ b/renderer.js @@ -968,6 +968,7 @@ function toggleOptions(show) { if (isProcessing) return; const modal = document.getElementById('options-modal'); if (show) { + document.activeElement?.blur(); modal.style.display = 'flex'; modal.style.opacity = '1'; } else { @@ -981,6 +982,7 @@ async function toggleProfile(show) { const modal = document.getElementById('profile-modal'); if (show) { await updatePlaytimeDisplay(); + document.activeElement?.blur(); modal.style.display = 'flex'; modal.style.opacity = '1'; } else { @@ -994,6 +996,7 @@ async function toggleServers(show) { const modal = document.getElementById('servers-modal'); if (show) { await loadServers(); + document.activeElement?.blur(); modal.style.display = 'flex'; modal.style.opacity = '1'; } else {