修复选将输入框的bug

This commit is contained in:
IceCola 2024-05-14 23:39:09 +08:00
parent 1e467bea6d
commit 9c8a3f36a1
1 changed files with 2 additions and 1 deletions

View File

@ -2034,8 +2034,9 @@ export class Create {
} }
} }
}; };
input.addEventListener("keyup", (e) => { input.addEventListener("keydown", (e) => {
if (e.key == "Enter") clickfind(e); if (e.key == "Enter") clickfind(e);
e.stopPropagation();
}); });
find.listen(clickfind); find.listen(clickfind);
Searcher.appendChild(input); Searcher.appendChild(input);