Closed
Bug 567571
Opened 15 years ago
Closed 11 years ago
caret-moved events missing at the end of a wrapped line of text in Thunderbird message composition
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: jdiggs, Assigned: surkov)
References
(Blocks 2 open bugs)
Details
(Keywords: access)
Attachments
(2 files)
Steps to reproduce:
1. Launch Thunderbird, create a new message, typing enough text in the body of the message for the first line to wrap onto the second.
2. Launch Accerciser and enable monitoring of object;text-caret-moved events.
3. Position the caret near the end of the line and begin pressing Right Arrow until the caret moves to the end of the line and then to the beginning of the next line.
Expected results: A caret-moved event would be present each time the caret moves.
Actual results: There is no caret-moved event when the caret moves from its position at the end of the first line to the beginning of the second line.
Impact: The user who is blind arrows from the end of the first line to the beginning of the second line, but ATs are not notified and thus present nothing to the user in response.
Assignee | ||
Comment 1•15 years ago
|
||
Does try build (http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/surkov.alexander@gmail.com-34db7d3569ea/), including patch from bug 567553, work?
Comment 2•14 years ago
|
||
The problem here is that firefox allows caret to be positioned after the last character of a line (usually space, or a regular character when long words are wrapped), so the next "right arrow" movement, will show the caret at the beginning of the next line but that is still in the same logical offset (after the last space, or the last character).
gtk or other toolkits does not allow setting the caret after the last space/character of a line.
So to fix this bug, we would need to change caret behaviour on ff. A workaround would be to fire a caret moved event with the same offset, but that could be more confusing.
(In reply to comment #2)
> gtk or other toolkits does not allow setting the caret after the last
> space/character of a line.
so, if I press End (or whatever shortcut for end of line), where would the caret be displayed?
Comment 4•14 years ago
|
||
At the end of the line, just after the last space (or last character if words are wrapped)
Comment 5•14 years ago
|
||
Comment 6•14 years ago
|
||
Thanks, I understand now.
I think Gecko is doing something different here.
It's reasonable to fix Gecko. But it may be difficult.
Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #2)
> So to fix this bug, we would need to change caret behaviour on ff. A workaround
> would be to fire a caret moved event with the same offset, but that could be
> more confusing.
or we could expose \n
(In reply to comment #7)
> I think Gecko is doing something different here.
> It's reasonable to fix Gecko. But it may be difficult.
They said it's not difficult but it's not likely be a part of Firefox 4.
Assignee | ||
Comment 9•11 years ago
|
||
Jamie, what do you think if Firefox would do what Gtk does? That would get rid of the wrapped line offset problem. Btw, IE and Chrome don't allow caret at the end of wrapped line as well.
Flags: needinfo?(jamie)
Comment 10•11 years ago
|
||
I don't understand where you're suggesting the caret would be positioned when you press end. In most toolkits I've seen, the caret is still placed at the end of the line, which is what Gecko already does. The only difference with Gecko is that you can right/left arrow to that position. However, even if you change Gecko so left/right arrow can't get there, pressing end still needs to fire a caret event and that still raises the question of what offset should be reported. This issue exists in most toolkits I know of.
Flags: needinfo?(jamie)
Assignee | ||
Comment 11•11 years ago
|
||
Ok, got it. I don't have HOME/END key on my mac keyboard so I tried left/right arrows under different browsers. But if END on most toolkit moves the caret after last character then I don't see a huge difference if left/right behavior was copied.
Assignee | ||
Comment 12•11 years ago
|
||
fixed by bug 928504
Assignee: nobody → surkov.alexander
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•