Fix a bug in focusInEvent/focusOutEvent of Editor::Editor. Reindent editor.cpp/editor.h