Fix focus on editor when changing tab