ID:1951877
 
(See the best response by Nadrew.)
Problem description:
Upon switching macros, the focus goes to the chat window.
How would I fix this so that the focus stays on the child panel where the action takes place?
Best response
You can do something like

winset(src,"mywindow.myelement","focus='true'")
winset(src,"default","focus=mappane")

That would be where I went wrong, thanks Nadrew.