Skip to main content

Function: radioGroupKeydown()

radioGroupKeydown(event): void

Defined in: composables/shared/utils/radioGroup.ts:29

keydown handler for an element carrying role="radio".

Enter/Space selects; arrow keys move focus to the previous/next radio in the enclosing role="radiogroup" and select it, which is how native radios behave. Selection is driven by dispatching a real click, so the component's existing @click handler stays the single place selection is implemented — no second code path to keep in sync.

Parameters

event

KeyboardEvent

Returns

void