mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-15 18:56:49 -04:00
screenreader: Fix name of ScreenReaderAction::StopTalking
This commit is contained in:
parent
9df000700a
commit
77e6bb9f06
1 changed files with 2 additions and 2 deletions
|
@ -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)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue