[Accessibility-ia2] magic numbers to indicate special positions on text methods
Aaron Leventhal
aaronlev at moonset.net
Fri Nov 30 11:19:11 PST 2007
Pete Brunet wrote:
>
> Aaron, Do you mean the caret offset is whereever the caret is blinking
> either after the last char where the offset would be last char plus 1
> or at the beginning of the next line where the offset would be the
> position of the first char on the line?
Sorry, after several re-reads I didn't follow that.
Basically if you get the line at the caret you'll get the line that has
the caret even if the caret is after the last char on the line (which
means the caret logically is on the first char of the next line).
> I've forgotten, does the EOL or CRLF take up zero or one or two
spaces (on Win and Linux)?
In Mozilla, for a soft line break the character at the end-of-line
position is just a space.
- Aaron
More information about the Accessibility-ia2
mailing list