Repository navigation
#776: Project panel arrow-key navigation and accessible names - #780
Merged
Merged
Conversation
Problem: with the Project panel focused the arrow keys did nothing (After Effects selects the previous / next item, extends with Shift and opens / closes folders with Right / Left). The custom-drawn rows, sort headers, twirls, label swatches, proxy switches and footer buttons reached AccessKit with no name or role, the empty list area and each row's name cell were unnamed extra Tab stops, a Tab-focused row showed no focus ring, and the arrows then moved egui's spatial focus instead. Fix: Up / Down select the previous / next row (Shift extends from the anchor), Right opens and Left closes the selected folder or selects the parent; the moved-to row scrolls into view. A row with keyboard focus keeps the arrows, focus follows the selection and the panel takes focus. Rows are AccessKit tree items named "<name>, <type>" with selected, level and expanded state; headers and row / footer buttons are named buttons; one Tab stop per row and a focus ring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on a row A mouse click gives a Project row no keyboard focus, and the arrow keys only move keyboard focus when a row already had it, so Delete / Backspace, Cmd+D and Enter keep working for mouse users, also after an arrow key moved the selection. Pin that down with a headless test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
Closed
Member
|
Merged. Thank you for the contribution, @vangel76! If you haven't already, come join us on Discord: https://discord.gg/artcraft. It's the best place to discuss what you're working on next and to coordinate with other contributors. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #776.
Part of ranked gap #25 "Accessibility" (ui-parity.md; AccessKit is enabled, tests read focus labels, but no keyboard-navigation audit, screen-reader pass or contrast check). This PR takes the keyboard-reachability and accessible-names slice for one major panel, the Project panel (docs/gaps.md).
Problem
Fix (
crates/ui-egui/src/panels/project.rsonly)max/minrather thanclamp, so a panel shorter than one row can't panic. The keys apply only while the panel has focus and no dialog, menu or inline rename is open. A row that has keyboard focus keeps the arrows: egui's spatial move is cancelled, focus follows the selection, and the panel takes focus.TreeItemnamed"<name>, <type>", with selected state, level and (for folders) expanded state. Sort headers are buttons named "Sort by Name, ascending". The twirl ("Open folder X"), proxy, label-swatch and footer buttons are named, and so are the bit-depth button and the comment cell.tr/tr_argsand fall back to English.Tests
crates/ui-egui/tests/ui_project_keyboard.rs(5 tests): moving and extending the selection, opening and closing folders and jumping to the parent, arrows ignored while another panel has focus, AccessKit names / roles / selected / expanded / level, and a row focused through AccessKit (as Tab or a screen reader does) keeping the arrows with focus following the selection. Four of the five fail without the change.ui_project_rows.rs::footage_context_menu_interprets_the_footagenow picks the context menu's "Interpret Footage" entry instead of the footer button of the same name, which is now named for screen readers.Gates
cargo fmt --check: okcargo clippy -j 4 -p effectcraft-ui-egui --all-targets -- -D warnings: okcargo test -j 4 -p effectcraft-ui-egui --no-fail-fast: all test targets pass.ui_gpupasses its 2 tests and then segfaults at process exit, as it also does on main on this machine.cargo xtask layers: okcargo xtask ciwas not run locally because the machine is shared. ui-egui is L5, so no wasm check of L0–L4 crates was needed.What remains
menus.rs).🤖 Generated with Claude Code