more accurate positions in CharInput