keyboard: Connect special characters dialogs to cosmic-config settings

This commit is contained in:
Ian Douglas Scott 2023-08-09 15:31:30 -07:00 committed by Ian Douglas Scott
parent e4d7c90f30
commit a5fcd5326e
4 changed files with 66 additions and 17 deletions

View file

@ -158,10 +158,11 @@ impl super::Page {
};
let prefix = special_key.prefix();
let current = self
.xkb_options
.xkb
.options
.iter()
.find(|x| x.starts_with(prefix))
.map(String::as_str);
.flat_map(|x| x.split(','))
.find(|x| x.starts_with(prefix));
// TODO description, layout default