Skip to content

Commit 27750b9

Browse files
feat: re-add keyboard and keypress report handlers to RPC (#811)
1 parent 5112bef commit 27750b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jsonrpc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,8 @@ var rpcHandlers = map[string]RPCHandler{
11681168
"renewDHCPLease": {Func: rpcRenewDHCPLease},
11691169
"getKeyboardLedState": {Func: rpcGetKeyboardLedState},
11701170
"getKeyDownState": {Func: rpcGetKeysDownState},
1171+
"keyboardReport": {Func: rpcKeyboardReport, Params: []string{"modifier", "keys"}},
1172+
"keypressReport": {Func: rpcKeypressReport, Params: []string{"key", "press"}},
11711173
"absMouseReport": {Func: rpcAbsMouseReport, Params: []string{"x", "y", "buttons"}},
11721174
"relMouseReport": {Func: rpcRelMouseReport, Params: []string{"dx", "dy", "buttons"}},
11731175
"wheelReport": {Func: rpcWheelReport, Params: []string{"wheelY"}},

0 commit comments

Comments
 (0)