fix(ui): Enter in CIDR field runs create scan and wait

Made-with: Cursor
This commit is contained in:
PTah
2026-04-13 12:54:31 +10:00
parent d85ec9ff61
commit 2ee86598f6
+5
View File
@@ -1335,6 +1335,11 @@
if (ev.key === "Enter") runMacSearch();
});
createScanBtn.addEventListener("click", createScan);
cidrInput?.addEventListener("keydown", (ev) => {
if (ev.key !== "Enter") return;
ev.preventDefault();
createScan();
});
document.getElementById("purgeDbBtn")?.addEventListener("click", async () => {
const inp = document.getElementById("purgeSecretInput");
const secret = (inp && inp.value.trim()) || "";