set the focus to the editor when change the editor tab