Add Escape key to close settings modal
This commit is contained in:
@@ -442,7 +442,14 @@ class AniWorldApp {
|
||||
this.hideConfigModal();
|
||||
});
|
||||
|
||||
// Scheduler configuration
|
||||
document.addEventListener('keydown', (e) => {
|
||||
const modal = document.getElementById('config-modal');
|
||||
if (e.key === 'Escape' && modal && !modal.classList.contains('hidden')) {
|
||||
this.hideConfigModal();
|
||||
}
|
||||
});
|
||||
|
||||
// Scheduler configuration
|
||||
document.getElementById('scheduled-rescan-enabled').addEventListener('change', () => {
|
||||
this.toggleSchedulerTimeInput();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user