Add key input handling functionality to the agent. Implement API endpoint for sending key presses with support for action types (tap, down, up) and modifiers. Update web interface to allow users to send keys and toggle modifier states through a new interactive element.

This commit is contained in:
2026-08-28 13:11:56 +03:00
parent 077d9ab850
commit 2a6680c5bf
8 changed files with 346 additions and 27 deletions
+6
View File
@@ -55,3 +55,9 @@ type TextRequest struct {
Text string `json:"text"`
DelayMs *int `json:"delay_ms,omitempty"`
}
type KeyRequest struct {
Key string `json:"key"`
Action string `json:"action"` // tap, down, up
Modifiers []string `json:"modifiers,omitempty"`
}