git.lucas.co / cce-data-editor
structured data editor
git clone https://git.lucas.co/cce-data-editor.git

commit81f64dfeb9e9459bd6515e37f84205bfd94c47a9
parentedcf6a1181
authorLucas Galante <lsgalante12@gmail.com>
date2026-10-08 10:36
feat(a11y): publish the accessibility tree to screen readers

Turns on cce-ui's `a11y` feature and returns true from
publishes_accessibility, so the editor's widgets reach AT-SPI. The pin is
repinned to the cce-ui commit that has the feature by bump-revs right after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

 Cargo.toml  | 2 +-
 src/main.rs | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Cargo.toml b/Cargo.toml
index 796c191..82370b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.1.0"
 edition = "2021"
 
 [dependencies]
-cce-ui = { git = "https://github.com/lsgalante/cce-ui.git", rev = "0633ea44fc41862821ac61b6b6372aaa17a70fff" }
+cce-ui = { git = "https://github.com/lsgalante/cce-ui.git", rev = "0633ea44fc41862821ac61b6b6372aaa17a70fff", features = ["a11y"] }
 smithay-client-toolkit = "0.19.2"
 calloop = "0.13.0"
 calloop-wayland-source = "0.3.0"
diff --git a/src/main.rs b/src/main.rs
index 411bc0e..9d91290 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2687,6 +2687,13 @@ impl Application for DataEditorApp {
         true
     }
 
+    /// The first app to publish its accessibility tree to screen readers (AT-SPI): a tree
+    /// list, text fields, a menubar and plate navigation already on — cce-ui's
+    /// rfc-accessibility-locale, phase 2.
+    fn publishes_accessibility(&self) -> bool {
+        true
+    }
+
     /// The geometry is cached until the next rebuild — a moved focus ring needs one.
     fn focus_stepped(&mut self) {
         self.needs_rebuild = true;