Fixed editor losing focus (Issue #4954)

Fix for issue #4954

This does the quick fix and calls EditorManager.focusEditor().

Tested this on Linux and it works.