Cursor Position Textbox

Hi,

I am trying to code a cued-recall task where participants are given the first three letters of previously studied words as a cue. I have managed to write the code to create the cues (see code below).

However, I am running into an issue when presenting the cues. I have used $retrieval_cue to place the cue into a textbox component. However, the textbox cursor appears at the start of the word. Ideally, I would like to move the cursor so that it appears at index 3. Is it possible to do this?

I have tried experimenting with textbox._pixi.textbox.selectionStart and textbox._pixi.textbox.selectionEnd because I read that this can allow you to change the cursor position. However, I have not been successful in implementing this code.

Any advice or suggestions are very much appreciated. Thank you!

The easiest option would be to have a second right anchored textbox with right justification to the left of the editable textbox, unless you want the participants to be able to delete the first three letters.