pub enum KeyName {
Show 13 variants
Return,
Delete,
Tab,
Space,
Escape,
ArrowUp,
ArrowDown,
ArrowLeft,
ArrowRight,
Home,
Lock,
VolumeUp,
VolumeDown,
}Expand description
Keyboard key name for press_key / record (camelCase serde 1:1 跟 TS).
Subset is intentional — these are the keys SDK users reliably exercise in iOS-sim contexts. Adding more is a c{N} discussion: arrow keys are here because focus-traversal flows need them (v1.5 c5g’’).
Variants§
Return
Return / Enter key — submits a form or confirms an action.
Delete
Delete / Backspace key — deletes the character before the cursor.
Tab
Tab key — moves focus to the next focusable element.
Space
Space key — inserts a space character.
Escape
Escape key — dismisses a modal or cancels an action.
ArrowUp
Up-arrow key — moves selection / focus / caret upward.
ArrowDown
Down-arrow key — moves selection / focus / caret downward.
ArrowLeft
Left-arrow key — moves selection / focus / caret leftward.
ArrowRight
Right-arrow key — moves selection / focus / caret rightward.
Home
iOS hardware Home button — XCUIDevice.shared.perform(.homeButton).
v5.2 c2 — maestro pressKey: home ↔ smix core KeyName 平铺。
Lock
iOS hardware Lock button — XCUIDevice.shared.perform(.lockButton).
v5.2 c2 — maestro pressKey: lock ↔ smix core KeyName 平铺。
VolumeUp
iOS hardware Volume Up button — XCUIDevice.Button.volumeUp.
v5.2 c2 — maestro pressKey: volume up ↔ smix core KeyName 平铺。
VolumeDown
iOS hardware Volume Down button — XCUIDevice.Button.volumeDown.
v5.2 c2 — maestro pressKey: volume down ↔ smix core KeyName 平铺。