chore: screen reader toggle shortcut
This commit is contained in:
parent
25669693bb
commit
e01ada5b74
4 changed files with 13 additions and 4 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -1756,7 +1756,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "cosmic-settings-config"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/cosmic-settings-daemon#2753b60609a07abb9db6eab3c0f36a52d8347df4"
|
||||
source = "git+https://github.com/pop-os/cosmic-settings-daemon#ef024bfd06bf9fbd57246a25c91d1fdd28153d05"
|
||||
dependencies = [
|
||||
"cosmic-config",
|
||||
"ron",
|
||||
|
|
@ -1777,7 +1777,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "cosmic-settings-daemon-config"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/pop-os/cosmic-settings-daemon#2753b60609a07abb9db6eab3c0f36a52d8347df4"
|
||||
source = "git+https://github.com/pop-os/cosmic-settings-daemon#ef024bfd06bf9fbd57246a25c91d1fdd28153d05"
|
||||
dependencies = [
|
||||
"cosmic-config",
|
||||
"serde",
|
||||
|
|
|
|||
|
|
@ -31,7 +31,9 @@ cosmic-settings-airplane-mode-subscription = { path = "../subscriptions/airplane
|
|||
cosmic-settings-bluetooth-subscription = { path = "../subscriptions/bluetooth", optional = true }
|
||||
cosmic-settings-network-manager-subscription = { path = "../subscriptions/network-manager", optional = true }
|
||||
cosmic-settings-upower-subscription = { path = "../subscriptions/upower", optional = true }
|
||||
cosmic-settings-sound-subscription = { path = "../subscriptions/sound", optional = true, features = ["auto-profile-init"] }
|
||||
cosmic-settings-sound-subscription = { path = "../subscriptions/sound", optional = true, features = [
|
||||
"auto-profile-init",
|
||||
] }
|
||||
cosmic-settings-wallpaper = { path = "../pages/wallpapers" }
|
||||
cosmic-settings-daemon-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", optional = true }
|
||||
derive_setters = "0.1.8"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ use super::{ShortcutMessage, ShortcutModel};
|
|||
use cosmic::app::ContextDrawer;
|
||||
use cosmic::{Element, Task};
|
||||
use cosmic_settings_config::shortcuts::Action;
|
||||
use cosmic_settings_config::shortcuts::action::System as SystemAction;
|
||||
use cosmic_settings_page::{self as page, Section, section};
|
||||
use slab::Slab;
|
||||
|
||||
|
|
@ -92,7 +93,11 @@ impl page::AutoBind<crate::pages::Message> for Page {}
|
|||
|
||||
#[must_use]
|
||||
pub const fn actions() -> &'static [Action] {
|
||||
&[Action::ZoomIn, Action::ZoomOut]
|
||||
&[
|
||||
Action::System(SystemAction::ScreenReader),
|
||||
Action::ZoomIn,
|
||||
Action::ZoomOut,
|
||||
]
|
||||
}
|
||||
|
||||
fn shortcuts() -> Section<crate::pages::Message> {
|
||||
|
|
|
|||
|
|
@ -595,6 +595,7 @@ fn all_system_actions() -> &'static [Action] {
|
|||
Action::System(SystemAction::PlayPause),
|
||||
Action::System(SystemAction::PlayNext),
|
||||
Action::System(SystemAction::PlayPrev),
|
||||
Action::System(SystemAction::ScreenReader),
|
||||
Action::System(SystemAction::Screenshot),
|
||||
Action::System(SystemAction::Suspend),
|
||||
Action::System(SystemAction::Terminal),
|
||||
|
|
@ -734,6 +735,7 @@ fn localize_action(action: &Action) -> String {
|
|||
SystemAction::PowerOff => fl!("system-shortcut", "poweroff"),
|
||||
SystemAction::Screenshot => fl!("system-shortcut", "screenshot"),
|
||||
SystemAction::Suspend => fl!("system-shortcut", "suspend"),
|
||||
SystemAction::ScreenReader => fl!("accessibility", "screen-reader"),
|
||||
SystemAction::Terminal => fl!("system-shortcut", "terminal"),
|
||||
SystemAction::TouchpadToggle => fl!("system-shortcut", "touchpad-toggle"),
|
||||
SystemAction::VolumeLower => fl!("system-shortcut", "volume-lower"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue