ID:1715028
 
Problem description:

Is there a more modern and convenient way to maintain focus on wherever the client is active during pop-ups? I checked around and couldn't really find anything outside of browse(null, null). This is inconvenient in the cases where they is a browser provided in the interface.
Try using winset(theclient, "thewindow", "focus=true")
I am aware of this, but I need a way of actively knowing what the focus of the client was before re-setting the focus. This instance, I have tried out the sd_alert library by ShadowDarke, which is nice, but it keeps focus with the use of browse(null, null) and I have already explained the downfall of that.

Nevermind, I have found what I was looking for:

Calling the winget() proc with a blank or null control ID can return some values that belong to the whole program.
winget(player, null, "focus") will return the ID of the control, if any, that currently has keyboard focus.
- http://www.byond.com/docs/ref/skinparams.html