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

Function isClearKeyStep

jsonrpc.go:1287–1289  ·  view source on GitHub ↗
(step hidrpc.KeyboardMacroStep)

Source from the content-addressed store, hash-verified

1285var keyboardClearStateKeys = make([]byte, hidrpc.HidKeyBufferSize)
1286
1287func isClearKeyStep(step hidrpc.KeyboardMacroStep) bool {
1288 return step.Modifier == 0 && bytes.Equal(step.Keys, keyboardClearStateKeys)
1289}
1290
1291func rpcDoExecuteKeyboardMacro(ctx context.Context, macro []hidrpc.KeyboardMacroStep) error {
1292 logger.Debug().Interface("macro", macro).Msg("Executing keyboard macro")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected