Closed
Bug 168107
Opened 23 years ago
Closed 22 years ago
[ATK Accessibility] better support for editable text
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.4beta
People
(Reporter: yuanyi21, Assigned: yuanyi21)
References
Details
Attachments
(1 file, 1 obsolete file)
16.49 KB,
patch
|
aaronlev
:
review+
|
Details | Diff | Splinter Review |
We need to distinguish *insert* and "delete" actions, get the start position of
inserted/deleted text and the length.
This issue was remained by bug 164763.
sfraser, is it possible that fire a dom event before *and* after the editor's
text changing? Now we only fire a "input" event after typing.
If that's impossible, can I get the previous text, I mean the text before
typing, then do a string compare? How can I get that text, from the editor's
undo buffer?
Status: NEW → ASSIGNED
Comment 2•23 years ago
|
||
I have no idea.
1) use mEditor and mTextFrame to cache the nsIEditor and nsITextControlFrame
instead of calling MakeSelection() every time;
2) nsHTMLTextFieldAccessible inherits from nsIEditActionListener, so we can
catch the text change event before its happening;
3) use a global variable to interchange the text change information between
nsHTMLTextFieldAccessible and nsRootAccessible.
seeking r=.
Attachment #102774 -
Flags: review?(mjudge)
Attachment #102774 -
Flags: review?(mjudge) → review?(aaronl)
Comment 4•22 years ago
|
||
Comment on attachment 102774 [details] [diff] [review]
use nsIEditActionListener to track the text change
Destructors should always be virtual.
The global gTextData should be on nsTextFieldAccessible instead of using the
global namesspace, so it becomes nsTextFieldAccessible::gTextData.
What happens if an input even occurs and none of the editor action methods get
called. It will use the old gTextData, which is now incorrect. Should we store
a boolean like gIsTextDataNew, and set it to false after it's used? Or, should
the nsHTMLTextFieldAccessible be responsible for firing it's own events?
Sorry about r-
I promise to help you get this is soon.
Attachment #102774 -
Flags: review?(aaronl) → review-
>Destructors should always be virtual.
Done!
>The global gTextData should be on nsTextFieldAccessible instead of using the
>global namesspace, so it becomes nsTextFieldAccessible::gTextData.
I moved gTextData into nsRootAccessible, because it will be used not only by
nsHTMLTextFieldAccessible but also by my future work for <editor>
accessibility.
>What happens if an input even occurs and none of the editor action methods
get
>called. It will use the old gTextData, which is now incorrect. Should we store
>a boolean like gIsTextDataNew, and set it to false after it's used? Or, should
>the nsHTMLTextFieldAccessible be responsible for firing it's own events?
I prefer the second way, because the currect dom input event isn't suitable for
ATK. ATK needs the "insert-text" event to be fired *after* text gets inserted,
but "delete-text" event to be fired *before* text gets removed. I promise I'll
do that in another bug that includes other work for editable text,
Attachment #102774 -
Attachment is obsolete: true
Attachment #115833 -
Flags: review?(aaronl)
Comment 6•22 years ago
|
||
Comment on attachment 115833 [details] [diff] [review]
new patch
r=aaronl
Thanks Kyle. Check to make sure the white space changes are correct for
accessible/src/base/Makefile.in
It looks like a tab vs. spaces problem.
Attachment #115833 -
Flags: review?(aaronl) → review+
Comment on attachment 115833 [details] [diff] [review]
new patch
Thanks Aaron, I'll correct the tab/space in makefile.in when I check it in.
Attachment #115833 -
Flags: superreview?(Henry.Jia)
Comment on attachment 115833 [details] [diff] [review]
new patch
Please ask someone else who is more suitable to sr this patch.
Attachment #115833 -
Flags: superreview?(Henry.Jia)
Comment on attachment 115833 [details] [diff] [review]
new patch
After a long discussion with Henry, he already understood what I want to do in
this patch :)
Attachment #115833 -
Flags: superreview?(Henry.Jia)
Summary: Accessibility: better support for editable text → [ATK Accessibility] better support for editable text
Assignee | ||
Comment 10•22 years ago
|
||
mass changing QA, platform, target milestone ...
QA Contact: dsirnapalli → jessie.li
Target Milestone: --- → mozilla1.4beta
Attachment #115833 -
Flags: superreview?(Henry.Jia)
Assignee | ||
Comment 11•22 years ago
|
||
also fixed by bug 195687.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•