DesktopTextArea.SetFocus

From Xojo Documentation

Method

DesktopTextArea.SetFocus()

New in 2021r3

Supported for all project types and targets.

Gives the DesktopTextArea the focus, sending all keydown events to the DesktopTextArea and moving the cursor there.