Bug 232163 - [Accessibility] StyledText speaks entire value when asked for "line"
Summary: [Accessibility] StyledText speaks entire value when asked for "line"
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.4 RC2   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2008-05-14 15:16 EDT by Carolyn MacLeod CLA
Modified: 2008-05-21 16:06 EDT (History)
3 users (show)

See Also:
Silenio_Quarti: review+
duongn: review+


Attachments
_patch.txt (5.56 KB, patch)
2008-05-21 11:45 EDT, Carolyn MacLeod CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carolyn MacLeod CLA 2008-05-14 15:16:42 EDT
20080514
Mac OS X Carbon

Run Eclipse (at least I20080513-2000) and open an editor on any java file.
Turn on VoiceOver (command+F5).

Use the down arrow key to move the cursor down to the next line.
VoiceOver reads the whole file again, every time up or down arrow is typed.

Also: the ctrl+alt+L VoiceOver command should just read the current line,
but it reads the whole file.

I am not sure which attribute VoiceOver wants in order to determine what the current line is, but it is likely one of the following:
- kAXInsertionPointLineNumberAttribute (not a required attribute)
- kAXLineForIndexParameterizedAttribute (given a character index, return line#)
- kAXRangeForLineParameterizedAttribute (given a line#, return range of character indices)
Comment 1 Carolyn MacLeod CLA 2008-05-21 11:45:12 EDT
Created attachment 101294 [details]
_patch.txt

This patch fixes the problem by handling the following 2 attributes in Accessible:

1) kAXInsertionPointLineNumberAttribute - asks for the value and the caret offset, and counts newlines in the value to find out what line the caret is on.

2) kAXRangeForLineParameterizedAttribute - asks for the value, and counts newlines up to the specified line number in order to find the start character and number of characters on the specified line.
Comment 2 Carolyn MacLeod CLA 2008-05-21 11:47:02 EDT
SSQ and DN, please drop by for a demo and review of this patch for RC2.
Comment 3 Carolyn MacLeod CLA 2008-05-21 16:06:34 EDT
Fixed > 20080521 and the fix will be in 3.4 RC2.