feat: preventDefault on Enter

This commit is contained in:
neoapps-dev
2026-09-03 12:31:03 +03:00
parent 1311a55932
commit f92e1e77de
14 changed files with 27 additions and 3 deletions
+1
View File
@@ -523,6 +523,7 @@ const SkinViewer = memo(function SkinViewer({
} else if (e.key === "ArrowUp") {
setFocusIndex((prev) => (prev > 0 ? prev - 1 : prev));
} else if (e.key === "Enter") {
e.preventDefault();
if (focusIndex === 0) {
(
containerRef.current?.querySelector("input") as HTMLElement