If the last thing to happen is a "Save" then likely Post-Database-Commit occurs either during or after that dialog is presented. Refer to the Builder Online Help for details on how it works, as it may also fire during Posts.
That said, the real question is your suggestion of a "focus" loss. Because you did not provide any version details it will be hard to offer anything specific. If you are uncontrollably losing focus you may be hitting a bug. I would recommend that you ensure that you are using the latest patched versions of whatever major version you are using. The latest of the supported versions is 126.96.36.199 and 188.8.131.52