Keyboard:backspace()
Delete characters behind the text cursor, the same as pressing Backspace on a keyboard.
Signature
Keyboard:backspace(count: number): void
Parameters
| Parameter | Type | Description |
|---|---|---|
| count | number | How many characters to delete |
Returns
void
Description
Works in the focused text field when the touch control mode is Accessibility. With Native
(root) mode it sends the Backspace key event once per character. Values of 0 or less do
nothing.
Example
Keyboard:type("Hello world")
Keyboard:backspace(5) -- leaves "Hello "
Compatible Version: 1.0.0.37 and up