Make every settings row reachable, and every accessibility switch honest
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -68,6 +68,18 @@ PickerRow {
|
||||
controlWidth: 90
|
||||
divider: index < root.options.length - 1
|
||||
activatable: modelData.value !== root.current
|
||||
|
||||
// An option in an open list, not a button: the reader should say
|
||||
// which one is already chosen. The current option is deliberately
|
||||
// not activatable and so not a Tab stop -- picking what is already
|
||||
// picked is not a thing to walk to.
|
||||
activeFocusOnTab: modelData.value !== root.current
|
||||
|
||||
Accessible.role: Accessible.RadioButton
|
||||
Accessible.name: String(modelData.label ?? "")
|
||||
Accessible.description: String(modelData.detail ?? "")
|
||||
Accessible.checked: modelData.value === root.current
|
||||
|
||||
onActivated: {
|
||||
root.picked(modelData.value);
|
||||
root.collapse();
|
||||
|
||||
Reference in New Issue
Block a user