mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-24 17:11:00 +00:00
feat: preventDefault on Enter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user