MCPcopy Create free account
hub / github.com/jetkvm/kvm / rpcSetKeyboardLayout

Function rpcSetKeyboardLayout

jsonrpc.go:1054–1060  ·  view source on GitHub ↗
(layout string)

Source from the content-addressed store, hash-verified

1052}
1053
1054func 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
1062func getKeyboardMacros() (any, error) {
1063 macros := make([]KeyboardMacro, len(config.KeyboardMacros))

Callers

nothing calls this directly

Calls 2

SaveConfigFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected