append the '.' when switching to text mode while typing