Skip to main content

DELETE_CHARACTER_COMMAND

const

Dispatched to delete a character, the payload will be `true` if the deletion is backwards (backspace or delete on macOS) and `false` if forwards (delete or Fn+Delete on macOS).

const DELETE_CHARACTER_COMMAND: LexicalCommand<boolean>

Import

import { DELETE_CHARACTER_COMMAND } from '@modular/sdk/editor';