mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
feat: prevent Ctrl+A behavior when search input is focused. See #251
This commit is contained in:
@@ -41,6 +41,12 @@ export class BulkManager {
|
|||||||
return; // Exit early - let the browser handle Ctrl+A within the modal
|
return; // Exit early - let the browser handle Ctrl+A within the modal
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if search input is currently focused - if so, don't handle Ctrl+A
|
||||||
|
const searchInput = document.getElementById('searchInput');
|
||||||
|
if (searchInput && document.activeElement === searchInput) {
|
||||||
|
return; // Exit early - let the browser handle Ctrl+A within the search input
|
||||||
|
}
|
||||||
|
|
||||||
// Prevent default browser "Select All" behavior
|
// Prevent default browser "Select All" behavior
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user