| Summary: | AccessibleTextExtendedListener.getText line/word offset problems | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Carolyn MacLeod <carolynmacleod4> | ||||||
| Component: | SWT | Assignee: | Carolyn MacLeod <carolynmacleod4> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | eclipse.felipe, Silenio_Quarti, skovatch | ||||||
| Version: | 3.6 | Flags: | Silenio_Quarti:
review+
eclipse.felipe: review+ carolynmacleod4: review+ |
||||||
| Target Milestone: | 3.6 RC2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Carolyn MacLeod
This is important for 3.6 RC2. Note that we need to make changes on both Windows and GTK. Scott, do you notice any discrepancies on the Mac in the area of offsets that are returned to VoiceOver when AccessibleTextExtendedListener.getText() is used to find a WORD or LINE? SSQ and I are going to have to call AccessibleTextExtendedListener.getText() multiple times to get the exact offset data (and the string) that the platform wants. (In reply to comment #2) > Scott, do you notice any discrepancies on the Mac in the area of offsets that > are returned to VoiceOver when AccessibleTextExtendedListener.getText() is used > to find a WORD or LINE? No, when I move from line to line or word to word I get the correct offsets. At the end of a line, however, StyledText treats the end of line as a distinct word, and I get a separate "new line" read back to me by VoiceOver. TextEdit doesn't do that, but I think I'm describing a navigation problem with StyledText as opposed to what you're looking at here. Created attachment 169241 [details]
patch for GTK
Created attachment 169396 [details]
patch for Winodws
SSQ, please review the Windows patch in comment 5. I will review the GTK patch in comment 4. Felipe, please review both patches. Good, In Car's patch, this should be changed (in all 3 methods). event.start = start; event.type = COM.IA2_TEXT_BOUNDARY_ALL; event.count = 0; To: event.start = start; event.type = ACC.TEXT_BOUNDARY_ALL; event.count = 0; (even though TEXT_BOUNDARY_ALL==IA2_TEXT_BOUNDARY_ALL==5) Fixed > 20100520 |