screenreader: Fix name of ScreenReaderAction::StopTalking

This commit is contained in:
Vicki Pfau 2025-06-17 17:50:39 -07:00
parent 9df000700a
commit 77e6bb9f06

View file

@ -82,7 +82,7 @@ pub enum ScreenReaderMode {
#[strum(serialize_all = "snake_case", ascii_case_insensitive)] #[strum(serialize_all = "snake_case", ascii_case_insensitive)]
#[repr(u32)] #[repr(u32)]
pub enum ScreenReaderAction { pub enum ScreenReaderAction {
StopSpeaking = 0, StopTalking = 0,
ReadNextWord = 1, ReadNextWord = 1,
ReadPreviousWord = 2, ReadPreviousWord = 2,
ReadNextItem = 3, ReadNextItem = 3,
@ -362,7 +362,7 @@ impl<'dbus> OrcaManager<'dbus> {
) -> Result<()> { ) -> Result<()> {
// TODO: Maybe filter events if the timestamp is too old? // TODO: Maybe filter events if the timestamp is too old?
match action { match action {
ScreenReaderAction::StopSpeaking => { ScreenReaderAction::StopTalking => {
// TODO: Use dbus method to stop orca from speaking instead once that's in a release/steamos package. // TODO: Use dbus method to stop orca from speaking instead once that's in a release/steamos package.
let pid = self.get_orca_pid()?; let pid = self.get_orca_pid()?;
signal::kill(pid, signal::Signal::SIGUSR2)?; signal::kill(pid, signal::Signal::SIGUSR2)?;