BackspaceCommand
class BackspaceCommand : EditCommand
kotlin.Any | |
↳ | androidx.compose.ui.text.input.BackspaceCommand |
Represents a backspace operation at the cursor position.
If there is composition, delete the text in the composition range. If there is no composition but there is selection, delete whole selected range. If there is no composition and selection, perform backspace key event at the cursor position.
Summary
Public constructors | |
---|---|
<init>() Represents a backspace operation at the cursor position. |
Public methods | |
---|---|
Unit |
applyTo(buffer: EditingBuffer) Apply the command on the editing buffer. |
Boolean | |
Int |
hashCode() |
String |
toString() |
Public constructors
<init>
BackspaceCommand()
Represents a backspace operation at the cursor position.
If there is composition, delete the text in the composition range. If there is no composition but there is selection, delete whole selected range. If there is no composition and selection, perform backspace key event at the cursor position.
Public methods
hashCode
fun hashCode(): Int
toString
fun toString(): String