screenreader: Don't send key events if the mode hasn't actually changed

This commit is contained in:
Vicki Pfau 2025-06-18 16:33:29 -07:00
parent 67b9d7ee7e
commit 83362e39b0

View file

@ -328,6 +328,10 @@ impl<'dbus> OrcaManager<'dbus> {
}
pub async fn set_mode(&mut self, mode: ScreenReaderMode) -> Result<()> {
if self.mode == mode {
return Ok(());
}
// Use insert+A twice to switch to focus mode sticky
// Use insert+A three times to switch to browse mode sticky
match mode {