("button:not(:disabled)") ?? [])];
+ const first = buttons[0]; const last = buttons.at(-1);
+ if (!first) { event.preventDefault(); return; }
+ if (event.shiftKey && document.activeElement === first) { event.preventDefault(); last?.focus(); }
+ else if (!event.shiftKey && document.activeElement === last) { event.preventDefault(); first.focus(); }
+ }
+ }}>
+
+ {error && {error} Your switch is still available. Try again or keep it.
}
+
+