Need help with autocomplete

I am implementing autocomplete feature for a custom language and am running into an issue. Whenever I press ‘Enter’ on a autocomplete option, it completes the text. What I want is, whenever ‘Enter’ is pressed, I want it to complete the text as well as open a new autocomplete list which I have specified.

Any leads on how to implement this will be quite useful.
Thanks you.

The way the completion currently works is that it activates when you type or explicitly run the startCompletion command, but other document changes (as recognized by their userEvent), don’t cause completion to happen.

Would an exported effect that you can add to a transaction to make it start completion, so that you can use your completion’s apply property to both insert the text and restart a new completion, work for you?