---
title: "BackspaceCommand"
description: "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."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class BackspaceCommand : EditCommand
```


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.



