shortcuts: Add new Play-(Pause/Next/Prev) shortcuts
This commit is contained in:
parent
f0845c3c23
commit
648c4e24ab
4 changed files with 13 additions and 1 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue