androidx.compose.foundation.text.input

KeyboardActionHandler

Fun interface · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

fun interface KeyboardActionHandler

Used by

Parameters that take a KeyboardActionHandler.

Functions

onKeyboardAction

fun onKeyboardAction(performDefaultAction: () -> Unit)

This is run when an IME action is performed by the software keyboard, or enter key is pressed on a hardware keyboard when the associated TextField is configured as single line. This callback replaces the default behavior for certain actions such as closing the keyboard or moving the focus to next field. If you also want to execute the default behavior, invoke performDefaultAction.