Function

performKeyPress

Send the specified KeyEvent to the focused component.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

performKeyPress

Common
fun SemanticsNodeInteraction.performKeyPress(keyEvent: KeyEvent): Boolean

Send the specified KeyEvent to the focused component.

Returns

true if the event was consumed. False otherwise.