(layout string)
| 1052 | } |
| 1053 | |
| 1054 | func rpcSetKeyboardLayout(layout string) error { |
| 1055 | config.KeyboardLayout = layout |
| 1056 | if err := SaveConfig(); err != nil { |
| 1057 | return fmt.Errorf("failed to save config: %w", err) |
| 1058 | } |
| 1059 | return nil |
| 1060 | } |
| 1061 | |
| 1062 | func getKeyboardMacros() (any, error) { |
| 1063 | macros := make([]KeyboardMacro, len(config.KeyboardMacros)) |
nothing calls this directly
no test coverage detected