mirror of https://github.com/jetkvm/kvm.git
fix: use currentSession.reportHidRPCKeyboardMacroState
This commit is contained in:
parent
d6de9668bd
commit
137d22b0b3
|
@ -1087,14 +1087,18 @@ func rpcExecuteKeyboardMacro(macro []hidrpc.KeyboardMacro) (usbgadget.KeysDownSt
|
|||
IsPaste: true,
|
||||
}
|
||||
|
||||
reportHidRPC(s, currentSession)
|
||||
if currentSession != nil {
|
||||
currentSession.reportHidRPCKeyboardMacroState(s)
|
||||
}
|
||||
|
||||
result, err := rpcDoExecuteKeyboardMacro(ctx, macro)
|
||||
|
||||
setKeyboardMacroCancel(nil)
|
||||
|
||||
s.State = false
|
||||
reportHidRPC(s, currentSession)
|
||||
if currentSession != nil {
|
||||
currentSession.reportHidRPCKeyboardMacroState(s)
|
||||
}
|
||||
|
||||
return result, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue