fix: a blind player can bind keys, build a consist and read the tapes

A review against WCAG 2.2 AA left places a screen reader user could not work:

- Key bindings: a key's button says the command and the key, the clear button
  which command it clears; a new key is said aloud and focus comes back to its
  row. The on-screen keyboard is reached with Tab and walked with the arrows.
- Number fields read their label; the spin buttons are named and left out of Tab.
- Dialogs: Enter presses the main button, Esc closes, focus starts on the first
  button and the message is read with it.
- Consist: every change is said - added, removed, turned, moved, replaced,
  undone - and the strip is a named list; a turned card says so.
- Searches say how many entries are left once typing pauses.
- Hasler tapes, the black box timeline, timetable and cab panel take focus, work
  from the keyboard, read their value as it changes and draw a focus frame.
- Section reset and level controls, the crew button and the tabs carry names;
  English names from Avalonia's templates are read in the starter's language;
  sort and crew menus are radio items.
- Input borders reach 3:1 against the panels; Tab starts at the top bar; the
  splash screen has a title and its progress reads the loading step.
This commit is contained in:
maj00r
2026-11-15 20:46:55 +01:00
parent 07bd3d27fb
commit ff5228555e
43 changed files with 1419 additions and 45 deletions

View File

@@ -567,6 +567,40 @@
<String key="SettingsRestored">Восстановлены сохранённые настройки</String>
<String key="TreeExpanded">развёрнуто</String>
<String key="TreeCollapsed">свёрнуто</String>
<String key="DepotConsistSources">Источники состава</String>
<String key="DepotVehicleInfo">Сведения о единице</String>
<String key="DepotVehicleEdit">Настройки единицы</String>
<String key="ScenarioDetails">Подробности сценария</String>
<String key="SectionLevel">Уровень раздела</String>
<String key="SearchFound">Найдено: {0}</String>
<String key="SpinUp">Увеличить</String>
<String key="SpinDown">Уменьшить</String>
<String key="ChromeMinimize">Свернуть</String>
<String key="ChromeMaximize">Развернуть</String>
<String key="ChromeRestore">Восстановить</String>
<String key="ChromeClose">Закрыть</String>
<String key="ScrollLineUp">На строку вверх</String>
<String key="ScrollLineDown">На строку вниз</String>
<String key="ScrollPageUp">На страницу вверх</String>
<String key="ScrollPageDown">На страницу вниз</String>
<String key="ScrollColumnLeft">На столбец влево</String>
<String key="ScrollColumnRight">На столбец вправо</String>
<String key="ScrollPageLeft">На страницу влево</String>
<String key="ScrollPageRight">На страницу вправо</String>
<String key="ScrollPosition">Положение</String>
<String key="TapeKeysHelp">Стрелки влево и вправо двигают по ленте, с Ctrl в десять раз дальше, Home и End ведут к её концам, Enter переносит чёрный ящик в этот момент.</String>
<String key="ConsistSaidEmpty">Состав пуст</String>
<String key="ConsistSaidAdded">Добавлено {0} на позицию {1} из {2}</String>
<String key="ConsistSaidRemoved">Удалено {0}, осталось единиц: {1}</String>
<String key="ConsistSaidTurned">{0} развёрнут</String>
<String key="ConsistSaidUnturned">{0} развёрнут обратно</String>
<String key="ConsistSaidTurnedMany">Развёрнуто единиц: {0}</String>
<String key="ConsistSaidMoved">{0} перемещён на позицию {1} из {2}</String>
<String key="ConsistSaidReordered">Порядок изменён</String>
<String key="ConsistSaidReplaced">{0} заменён на {1}</String>
<String key="ConsistSaidChangedMany">Изменено единиц: {0}, в составе: {1}</String>
<String key="ConsistSaidUndone">Отменено. {0}</String>
<String key="ConsistSaidRedone">Повторено. {0}</String>
<String key="SceneryImage">Изображение сценерии</String>
<String key="PanelSplitter">Разделитель панелей</String>
<String key="SettingsCategories">Категории настроек</String>