Only call onFocus when the editor is really focused