qt_key_press
Send key events to widgets in PySide6 applications for automated testing and interaction. Specify a key name and optional widget reference to simulate keyboard input.
Instructions
Send a key event to a widget or the focused widget.
Args:
key: Key name (e.g., 'Return', 'Escape', 'Ctrl+S', 'a').
ref: Widget ref. If omitted, sends to the currently focused widget.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| ref | No |