Skip to content

Commit

Permalink
Improved sendInput() on control.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lvcabral committed Jan 17, 2025
1 parent 40469b3 commit 136f6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function sendKey(key: string, mod: number, type: RemoteType = RemoteType.

// Input API
export function sendInput(data: object) {
const inputEvent: InputEvent = Object.assign({ source_ip_addr: "" }, data);
const inputEvent: InputEvent = { source_ip_addr: "", ...data };
notifyAll("post", inputEvent);
}

Expand Down

0 comments on commit 136f6e6

Please sign in to comment.