API reference
Preparing search index…

TextSelection

Copied native text selection, in Unicode code points rather than UTF-16.

interface TextSelection {
    end: number;
    start: number;
    text: string;
}
Source & inheritance
Member directory3

Properties

Properties

end: number

First code point after the selection.

Source & inheritance
start: number

First selected code point.

Source & inheritance
text: string

Selected display text; password inputs return native * masks.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0