Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions cosmic-settings/src/pages/input/keyboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ static ALTERNATE_CHARACTER_OPTIONS: &[(&str, &str)] = &[
];

static CAPS_LOCK_OPTIONS: &[(&str, &str)] = &[
("Disabled", "caps:none"),
("Escape", "caps:escape"),
("Swap with Escape", "caps:swapescape"),
("Backspace", "caps:backspace"),
Expand Down Expand Up @@ -627,11 +628,7 @@ impl Page {

let mut list = cosmic::widget::list_column();

if matches!(special_key, SpecialKey::CapsLock) {
list = list.add(special_char_radio_row("Caps Lock", None, current));
} else {
list = list.add(special_char_radio_row("None", None, current));
}
list = list.add(special_char_radio_row("Default", None, current));

list = options
.iter()
Expand Down