feat: add back switch_keybaord_layout

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

View File

@@ -925,6 +925,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);