fix(input): add suspend shortcut
This commit is contained in:
parent
090d8bf48e
commit
7c79b263d6
2 changed files with 4 additions and 2 deletions
|
|
@ -16,13 +16,13 @@ pub mod tiling;
|
|||
use cosmic::app::ContextDrawer;
|
||||
use cosmic::iced::Length;
|
||||
use cosmic::widget::{self, icon, settings, text};
|
||||
use cosmic::{Apply, Element, Task, theme};
|
||||
use cosmic::{theme, Apply, Element, Task};
|
||||
use cosmic_config::ConfigGet;
|
||||
use cosmic_settings_config::Binding;
|
||||
use cosmic_settings_config::shortcuts::action::{
|
||||
Direction, FocusDirection, Orientation, ResizeDirection,
|
||||
};
|
||||
use cosmic_settings_config::shortcuts::{self, Action, Shortcuts};
|
||||
use cosmic_settings_config::Binding;
|
||||
use cosmic_settings_page::Section;
|
||||
use cosmic_settings_page::{self as page, section};
|
||||
use itertools::Itertools;
|
||||
|
|
@ -732,6 +732,7 @@ fn localize_action(action: &Action) -> String {
|
|||
SystemAction::PlayPrev => fl!("system-shortcut", "play-prev"),
|
||||
SystemAction::PowerOff => fl!("system-shortcut", "poweroff"),
|
||||
SystemAction::Screenshot => fl!("system-shortcut", "screenshot"),
|
||||
SystemAction::Suspend => fl!("system-shortcut", "suspend"),
|
||||
SystemAction::Terminal => fl!("system-shortcut", "terminal"),
|
||||
SystemAction::TouchpadToggle => fl!("system-shortcut", "touchpad-toggle"),
|
||||
SystemAction::VolumeLower => fl!("system-shortcut", "volume-lower"),
|
||||
|
|
|
|||
1
i18n/en/cosmic_settings.ftl
vendored
1
i18n/en/cosmic_settings.ftl
vendored
|
|
@ -709,6 +709,7 @@ system-shortcut = System
|
|||
.play-prev = Previous track
|
||||
.poweroff = Power off
|
||||
.screenshot = Take a screenshot
|
||||
.suspend = Suspend
|
||||
.terminal = Open a terminal
|
||||
.touchpad-toggle = Toggle touchpad
|
||||
.volume-lower = Decrease audio output volume
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue