Re: Custom text fields not working with VoiceOver.
Re: Custom text fields not working with VoiceOver.
- Subject: Re: Custom text fields not working with VoiceOver.
- From: Chris Fleizach <email@hidden>
- Date: Thu, 31 Mar 2011 14:29:00 -0700
It's likely one of the following values is wrong
AXValue (W): ""
AXNumberOfCharacters: "0"
AXSelectedText: ""
AXSelectedTextRange: "pos=0 len=0"
AXVisibleCharacterRange: "pos=0 len=0"
If you can also attach a tree output when there's text in the textfield and the cursor is at a specific location, it might help
On Mar 31, 2011, at 1:56 PM, David Tseng wrote:
> Hi list,
>
> I'm working on a custom text field and am running into an odd issue
> when testing with VoiceOver.
>
> Firstly, for some background, this is part of the accessibility work
> done for Chrome.
> The text field is entirely custom; we're implementing the
> NSAccessibility informal protocol. I've pasted the output from
> Accessibility Inspector below. We're also firing SelectedTextChanged
> and ValueChanged notifications appropriately as the typed text and
> insertion position changes.
>
> The issue that we're running into is that VoiceOver reads only the
> first typed character, but subsequent typed characters results in an
> error tone. If one tabs away and back to the text field, arrowing
> left or right echos characters appropriately, but typing characters
> results in VoiceOver echoing the already typed string (regardless of
> what's typed). It's as if VoiceOver hasn't requested the new value
> attribute. We're auto releasing the value when returning the
> NSString.
>
>
> Attributes:
> AXChildren: "<array of size 0>"
> AXDescription: ""
> AXEnabled: "true"
> AXFocused (W): "true"
> AXHelp: ""
> AXParent: "<AXGroup: "text field">"
> AXPosition: "x=196 y=403"
> AXRole: "AXTextField"
> AXRoleDescription: "text field"
> AXSize: "w=175 h=19"
> AXTitle: ""
> AXTopLevelUIElement: "<AXWindow: "Google Accounts">"
> AXValue (W): ""
> AXWindow: "<AXWindow: "Google Accounts">"
> AXURL: ""
> AXVisited: "false"
> AXInsertionPointLineNumber: "0"
> AXNumberOfCharacters: "0"
> AXSelectedText: ""
> AXSelectedTextRange: "pos=0 len=0"
> AXVisibleCharacterRange: "pos=0 len=0"
>
> Actions:
> AXShowMenu - show menu
>
> Errors:
> AXStartTextMarker: Missing
> AXEndTextMarker: Missing
> AXBlockQuoteLevel: Missing
> AXSelected: Missing
> AXSelectedTextMarkerRange: Missing
>
> Warnings:
> AXURL: Unexpected extra attribute
> AXDescription or AXTitleUIElement: Missing.
>
> Optional Attributes:
> AXLinkedUIElements
> AXValueDescription
> AXSearchButton
> AXPlaceholderValue
> AXTitleUIElement
> AXClearButton
> AXSelectedTextRanges
> AXSubrole
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Accessibility-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden