NEAREST_SENTENCE

Focuses on the sentence or the nearest element boundary as close as possible to the reading position. If the reading position is within a text node, a temporary wrapper element is created around the nearest sentence to enable focus. This provides more precise focus positioning than NEAREST_ELEMENT, especially useful for screen readers.

NOTE: This option relies on the Intl.Segmenter API, and for browsers that do not support it, we fall back to the NEAREST_WORD.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)