feat(keyboard): caps lock key default mapping.
This commit is contained in:
parent
174a352d78
commit
5ddc6510a8
1 changed files with 7 additions and 2 deletions
|
|
@ -576,8 +576,13 @@ impl Page {
|
|||
|
||||
// TODO description, layout default
|
||||
|
||||
let mut list =
|
||||
cosmic::widget::list_column().add(special_char_radio_row("None", None, current));
|
||||
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 = options
|
||||
.iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue