Fixed editor losing focus (Issue #4954)

This does the quick fix and calls EditorManager.focusEditor().

Tested this on Linux and it works.