small fixes

This commit is contained in:
2026-03-01 19:48:29 -04:00
parent 364facd9f0
commit 1764adf0a5
15 changed files with 68 additions and 24 deletions

View File

@@ -44,8 +44,10 @@ export function StepControls({
// Keyboard shortcuts
const handleKeyDown = useCallback(
(e: KeyboardEvent) => {
const tag = (e.target as HTMLElement).tagName;
const el = e.target as HTMLElement;
const tag = el.tagName;
if (["INPUT", "TEXTAREA", "SELECT"].includes(tag)) return;
if (el.closest("button, [role='button'], a")) return;
if (e.key === "ArrowRight" || e.key === " ") {
e.preventDefault();