Remain in dialog. We should decide if that is the behavior we want, as discussed in the Image dialog enhancements . Note the differences between the current Windows and Mac versions. We have been using that since the first Composer version and believe it is clearer. Caret can be anyplace in the document and anything can be selected.
Initialization Get the current selection in the document.
If a single existing target is selected, then this will change this element. If a single target is not selected, then we will insert a new target Get the currently-selected text from the document to use as the initial string in the target editobox. If selection was not an existing target, create a new target with user's NAME string and insert into document at current insert point. Dismiss the dialog Cancel Dismiss dialog and do not change an existing target and do not insert a new target. Help Popup help for targets.