Preparing search index...

    Text update from the input method (text and selection range).

    Lens Scripting Version 364

    var options = new TextInputSystem.KeyboardOptions();

    global.textInputSystem.requestKeyboard(options);

    var update = new TextInputSystem.TextUpdate();
    update.text = "Hello, world!";
    update.selectionStart = 0;
    update.selectionEnd = 10;

    global.textInputSystem.updateText(update);
    Index

    Constructors

    Properties

    selectionEnd: number

    The end of the selection range inside the updated text

    Lens Scripting Version 364

    0
    
    selectionStart: number

    The start of the selection range inside the updated text (0 based index)

    Lens Scripting Version 364

    0
    
    text: string

    The updated text coming from the input method.

    Lens Scripting Version 364

    ""