fn
deletionDirection
Which way a native deletion eats. At a block boundary the browser would cross into the neighbouring block's DOM, so those cases go to the join commands regardless of granularity (character, word, line).
Signature
ts
export function deletionDirection(inputType: string): 'backward' | 'forward' | null{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
inputType | string | — |
Returns
'backward' | 'forward' | null