fix: correct gb keyboard layout name

This commit is contained in:
DreamMaoMao 2025-10-15 10:39:47 +08:00
parent 03d718458f
commit faa867d46a
2 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,7 @@ typedef struct {
static const LayoutMapping layout_mappings[] = { static const LayoutMapping layout_mappings[] = {
{"English (US)", "us"}, {"English (US)", "us"},
{"English (UK)", "uk"}, {"English (UK)", "gb"},
{"Russian", "ru"}, {"Russian", "ru"},
{"German", "de"}, {"German", "de"},
{"French", "fr"}, {"French", "fr"},
@ -76,4 +76,4 @@ static const LayoutMapping layout_mappings[] = {
{"Kannada", "kn"}, {"Kannada", "kn"},
{"Malayalam", "ml"}, {"Malayalam", "ml"},
{NULL, NULL} // 结束标记 {NULL, NULL} // 结束标记
}; };

View file

@ -910,6 +910,8 @@ cleanup_layouts:
cleanup_context: cleanup_context:
xkb_context_unref(context); xkb_context_unref(context);
printstatus();
return 0; return 0;
} }