Bug 231148 - [Accessibility] StyledText typed characters are not accessible on Leopard
Summary: [Accessibility] StyledText typed characters are not accessible on Leopard
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.4 RC1   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2008-05-08 11:40 EDT by Carolyn MacLeod CLA
Modified: 2008-05-08 12:34 EDT (History)
2 users (show)

See Also:
grant_gayed: review+


Attachments
_patch.txt (831 bytes, patch)
2008-05-08 11:57 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-08 11:40:43 EDT
I20080502-0100

Open any editor, or run the CustomControlExample to get a StyledText.
Turn on VoiceOver.
Type some characters into the StyledText.

The typed characters are not spoken.
Comment 1 Carolyn MacLeod CLA 2008-05-08 11:57:25 EDT
Created attachment 99316 [details]
_patch.txt

A control with TextField role (i.e. StyledText) needs to handle kAXStringForRangeParameterizedAttribute. This attribute was being handled, but VoiceOver was not asking for it.
On Tiger, all controls with TextField role were assumed to handle this attribute, so VoiceOver asked for it "for free". On Leopard, however, controls must explicitly publish all attributes that they support.

The patch simply adds kAXStringForRangeParameterizedAttribute to the list of attributes for TextField.
Comment 2 Carolyn MacLeod CLA 2008-05-08 11:59:35 EDT
Grant, please review fix, and drop by for a demo.
Comment 3 Carolyn MacLeod CLA 2008-05-08 12:34:12 EDT
Fixed > 20080508