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

ParameterTypeDescription
inputTypestring—

Returns

'backward' | 'forward' | null