Although auto-focus only works between a single Blender instance's child windows, this does include our own console and we don't want that. Luckily fixing this only requires a single check for null - because GetFocus() returns null to us for our console. Pull Request: https://projects.blender.org/blender/blender/pulls/108362