diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-22 08:26:04 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-22 09:13:50 +0300 |
| commit | 07c166ba7de5066163abf768967e365999579630 (patch) | |
| tree | 1013141e2be458480a50131b16d1f502ff571b57 /src/ui | |
| parent | e107fddaa44fa0b424ee0bf1f23cd8281245aa19 (diff) | |
| download | niri-07c166ba7de5066163abf768967e365999579630.tar.gz niri-07c166ba7de5066163abf768967e365999579630.tar.bz2 niri-07c166ba7de5066163abf768967e365999579630.zip | |
Add proper Alt-Tab screen reader support
Announce window selection, announce current scope, announce when Alt-Tab
is empty.
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/mru.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/mru.rs b/src/ui/mru.rs index 5e7e24df..e7fe9227 100644 --- a/src/ui/mru.rs +++ b/src/ui/mru.rs @@ -1224,6 +1224,16 @@ impl WindowMruUi { _ => None, } } + + #[cfg(feature = "dbus")] + pub fn a11y_scope_text(&self) -> String { + let scope = match self.scope() { + MruScope::All => "all", + MruScope::Output => "output", + MruScope::Workspace => "workspace", + }; + format!("Scope {scope}") + } } fn compute_view_offset(cur_x: f64, working_width: f64, new_col_x: f64, new_col_width: f64) -> f64 { |
