21. deleteSelectionOrDeleteChar

Parameter syntax:

[ 'backwards' ]?

If there is an explicit node selection, invokes command delete without any parameter, otherwise invokes command deleteChar, passing it its own parameter if any.

This command is intended to be bound to keys Del and BackSpace.