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:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user