ios_key_hid
Send raw HID keyboard usage codes as real hardware keypresses — the ONLY way to inject true keypresses, modifiers and shortcuts (the typing tools can only type into a focused field). usages is an ordered list of USB HID Keyboard/Keypad usage-page codes (e.g. 0x04=a … 0x1D=z, 0x28=Return, 0x2A=Backspace; modifiers 0xE0=LeftCtrl…0xE3=LeftGUI); send them together to press a chord. The keys are pressed AND released as one action, so nothing stays held after the call. Pass an empty list to force-release anything a previous caller left held. Returns "no HID available" on older iOS or when the device has no active input channel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | iOS device UDID | |
| usages | Yes | Ordered USB HID Keyboard/Keypad usage codes to press together (numbers, e.g. [0x04] for "a"). Empty list = release any keys left held. |