From 153f458beb7634fe9e86b9ee1afedd144c2eb1c9 Mon Sep 17 00:00:00 2001 From: Siyuan Miao Date: Thu, 18 Sep 2025 12:46:35 +0200 Subject: [PATCH] fix: send duplicated keyDownState --- jsonrpc.go | 1 - 1 file changed, 1 deletion(-) diff --git a/jsonrpc.go b/jsonrpc.go index a445a277..0bfce057 100644 --- a/jsonrpc.go +++ b/jsonrpc.go @@ -1143,7 +1143,6 @@ func rpcDoExecuteKeyboardMacro(ctx context.Context, macro []hidrpc.KeyboardMacro if err != nil { logger.Warn().Err(err).Msg("failed to reset keyboard state") } - gadget.UpdateKeysDown(0, keyboardClearStateKeys) logger.Debug().Int("step", i).Msg("Keyboard macro cancelled during sleep") return last, ctx.Err()