ensureValidSelection

Type: Function

Ensures the cursor is in a valid position according to CVK configuration, by moving it in the given direction until a valid position is found.

Returns false if no valid position could be reached.

Non-collapsed selections are always considered valid and result in true without any adjustments being made.

Refer to primitives for more information on how to include this primitive.

Arguments

  1. blueprint

    (Required)

    Type: Blueprint

  2. format

    (Required)

    Type: Format

  3. isForwards

    (Required)

    Type: Boolean

  4. resultingRange

    (Required)

    Type: Range

Returns

Type: Boolean