fix: Set input list default to "English (US)"

Closes: #283
This commit is contained in:
Josh Megnauth 2024-05-18 02:05:48 -04:00 committed by Michael Murphy
parent bf6201d54a
commit 71c776e0f7

View file

@ -312,7 +312,12 @@ impl page::Page<crate::pages::Message> for Page {
}
// Xkb layouts currently enabled.
let layouts = self.xkb.layout.split_terminator(',');
let layouts = if self.xkb.layout.is_empty() {
"us"
} else {
&self.xkb.layout
}
.split_terminator(',');
// Xkb variants for each layout. Repeat empty strings in case there's more layouts than variants.
let variants = self