Fix settings
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user