Fix settings

This commit is contained in:
2026-01-08 23:16:29 -05:00
parent b781a44ed5
commit 83a1ba393a
5 changed files with 21 additions and 322 deletions

View File

@@ -122,6 +122,15 @@ function closeSettingsModal() {
}
}
// Close modal when clicking on backdrop (outside the settings content)
function closeOnBackdropClick(event) {
const modal = document.getElementById('settingsModal');
// Only close if clicking directly on the modal backdrop, not on content
if (event.target === modal) {
closeSettingsModal();
}
}
// Keyboard shortcut to open settings (Alt+S)
document.addEventListener('keydown', (e) => {
if (e.altKey && e.key === 's') {