set revertfocus
set revertfocus= { on | off}
This option is used by dialog windows to switch input focus from the dialog to another window, most likely the user instance window that is the parent of the dialog box.
Currently, its only use will be by the insert markup dialog box. If this option is set to “on” and the user selects markup from the dialog, the focus will be switched back to the user instance with the caret at the insertion point. Otherwise, the input focus will remain on the dialog box.