shortcuts: Add new Play-(Pause/Next/Prev) shortcuts

This commit is contained in:
Victoria Brekenfeld 2024-08-05 18:10:31 +02:00 committed by Jeremy Soller
parent f0845c3c23
commit 648c4e24ab
4 changed files with 13 additions and 1 deletions

View file

@ -481,6 +481,9 @@ fn all_actions() -> &'static [Action] {
Action::System(SystemAction::LockScreen),
Action::System(SystemAction::Mute),
Action::System(SystemAction::MuteMic),
Action::System(SystemAction::PlayPause),
Action::System(SystemAction::PlayNext),
Action::System(SystemAction::PlayPrev),
Action::System(SystemAction::Screenshot),
Action::System(SystemAction::Terminal),
Action::System(SystemAction::VolumeLower),
@ -606,6 +609,9 @@ fn localize_action(action: &Action) -> String {
SystemAction::LockScreen => fl!("system-shortcut", "lock-screen"),
SystemAction::Mute => fl!("system-shortcut", "mute"),
SystemAction::MuteMic => fl!("system-shortcut", "mute-mic"),
SystemAction::PlayPause => fl!("system-shortcut", "play-pause"),
SystemAction::PlayNext => fl!("system-shortcut", "play-next"),
SystemAction::PlayPrev => fl!("system-shortcut", "play-prev"),
SystemAction::Screenshot => fl!("system-shortcut", "screenshot"),
SystemAction::Terminal => fl!("system-shortcut", "terminal"),
SystemAction::VolumeLower => fl!("system-shortcut", "volume-lower"),

View file

@ -82,6 +82,9 @@ pub const fn actions() -> &'static [Action] {
Action::System(SystemAction::VolumeRaise),
Action::System(SystemAction::Mute),
Action::System(SystemAction::MuteMic),
Action::System(SystemAction::PlayPause),
Action::System(SystemAction::PlayNext),
Action::System(SystemAction::PlayPrev),
Action::System(SystemAction::BrightnessDown),
Action::System(SystemAction::BrightnessUp),
Action::System(SystemAction::KeyboardBrightnessDown),