feat: add back switch_keybaord_layout

This commit is contained in:
DreamMaoMao 2025-11-01 19:06:04 +08:00
parent f25386cca2
commit 4ee55fc0ba
4 changed files with 89 additions and 1 deletions

View file

@ -908,6 +908,8 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value,
} else if (strcmp(func_name, "setkeymode") == 0) {
func = setkeymode;
(*arg).v = strdup(arg_value);
} else if (strcmp(func_name, "switch_keyboard_layout") == 0) {
func = switch_keyboard_layout;
} else if (strcmp(func_name, "setlayout") == 0) {
func = setlayout;
(*arg).v = strdup(arg_value);