Files
cthulhu/docs/testing/gui-list-tables.md

45 lines
2.4 KiB
Markdown

# GTK tables exposed as lists
I38's run dialog uses a GTK TreeView whose accessible role is overridden to
`list`. It still exposes table selection and table cells. On the first Down,
GTK can send container focus, row selection and container focus again.
Cthulhu resolves this control's focus to its selected cell using the existing
table selection rules. Recognition requires the GTK toolkit, list role and
AT-SPI Table interface. Multiple selected rows retain container focus. Cell
capture preserves the table owner so subsequent arrows remain readable.
Ordinary lists and browser lists do not use this added normalization.
Window descriptions spoken during entry activation are remembered before the
first row selection. Changed or newly available help remains eligible for
speech. A list's name is supplied by list context when enabled, or by the
existing table-name presentation when list context is disabled.
Run the affected packages and isolated GTK checks:
```sh
go test -race ./internal/app ./internal/atspi ./internal/presentation -count=1
python3 tests/native_atspi.py --table-only
```
The native checks cover ordinary single- and multiple-selection tables, tables
with list roles, and combined focus/context/speech delivery. The speech check
uses Down twice and Shift+Tab: each row and the opening description occur once,
and the only list-exit announcement occurs on returning to the entry. The
fixture counts accessible children according to existing list-count behavior;
that count can include headers and individual cells.
Before submission, review the diff and test with the rebuilt reader:
1. Open I38 Run, wait for its instructions, and press Down several times, then
Up. Confirm the first result is readable without repeated help or a false
list-exit announcement. Return to the entry with Shift+Tab, type a filter,
re-enter the results, and close and reopen the dialog.
2. In a file manager and Cthulhu's preference tables, check Up/Down, Left/Right,
multiple selection and the full-row reading preference.
3. Check an ordinary GTK list, a menu and a browser list. Genuine container
exits must still be announced when enabled. Toggle list-context speech and
description speech, checking that enabled labels/help remain available.
4. Repeat the affected navigation with a physical Braille display when
available. Automated checks do not establish audible or physical acceptance.