Skip to main content

DELETE_WORD_COMMAND

const

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

const DELETE_WORD_COMMAND: LexicalCommand<boolean>

Import

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