Skip to main content

KEY_ENTER_COMMAND

const

Dispatched when the enter key is pressed, may also be called with a null payload when the intent is to insert a newline. The shift modifier key must be down, any other modifier keys may also be down.

const KEY_ENTER_COMMAND: LexicalCommand<KeyboardEvent | null>

Import

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