Don't change focus to editor

Fixed #909

@devoncarew