Modified VirtualDialog to include signals for when it is in the process of activation or deactivation, and made Credentials leverage this functionality to quicker restore the focus