mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-05 14:10:34 -04:00
screenreader: Don't send key events if the mode hasn't actually changed
This commit is contained in:
parent
67b9d7ee7e
commit
83362e39b0
1 changed files with 4 additions and 0 deletions
|
@ -328,6 +328,10 @@ impl<'dbus> OrcaManager<'dbus> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn set_mode(&mut self, mode: ScreenReaderMode) -> Result<()> {
|
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 twice to switch to focus mode sticky
|
||||||
// Use insert+A three times to switch to browse mode sticky
|
// Use insert+A three times to switch to browse mode sticky
|
||||||
match mode {
|
match mode {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue