Re: Speak Words not working for custom input view
Re: Speak Words not working for custom input view
- Subject: Re: Speak Words not working for custom input view
- From: Charlie Powell <email@hidden>
- Date: Sat, 16 Jun 2018 14:37:50 +0000
- Thread-topic: Speak Words not working for custom input view
My custom UIView is definitely the first responder, I confirmed by checking the
result of isFirstResponder on the view - it deals with typing, autocorrect, and
keyboard shortcuts (among other things) just fine. I can also call
sendAction:to:from:forEvent: and pass nil as the target which causes the
selector to be called on my view (since that method is documented to send to
the action to the current first responder when the target provided is nil).
All of that said, the SampleTextInput app did show one interesting thing -
specifically, in the sample app I see the UIView implementing UITextInput
(APLEditableCoreTextView) get asked for its accessibilityValue where it returns
the entire contents of the view. In my app, however, if I put a symbolic
breakpoint on accessibilityValue I see this get called on my UIApplication
object and never the first responder! I tried overriding that to return an
actual value but that didn't help... there is a bunch of logic in the app
around handling actions via methods like canPerformAction:withSender: and
respondsToSelector: - could there be some specific selector that the system is
trying to use that I'm not handling correctly?
------------------------------
Date: Tue, 12 Jun 2018 11:16:08 -0700
From: Nandini <email@hidden>
To: email@hidden
Subject: Re: Speak Words not working for custom input view
Features under Typing feedback section, which includes "Speak Words" are based
on the first responder’s change of value.
Can you check if you have set the custom UIView that’s implementing the
UITextInput to becomeFirstResponder,
by either overriding canBecomeFirstResponder to return YES or by calling
becomeFirstResponder on the view?
>> From: Charlie Powell
>> Subject: Speak Words not working for custom input view
>> Date: June 11, 2018 at 4:18:59 PM PDT
>> To: "email@hidden
>> <mailto:email@hidden>"
>> <email@hidden
>> <mailto:email@hidden>>
>>
>> I have a custom UIView implementing UITextInput and things like autocorrect
>> and hardware keyboard shortcuts all work fine, but the "Speak Words" feature
>> (Settings -> General -> Accessibility -> Speech -> Typing Feedback -> Speak
>> Words) doesn't. It _does_ work when content gets autocorrected or when using
>> the suggestion bar on top of the keyboard, but when just typing and no
>> autocorrect is invoked the word is never read by the system.
>>
>> So far, all I've been able to determine is that for standard system controls
>> where it does work, accessibilityValue gets called on the relevant UIView,
>> but I never see this get called on my view. I checked that
>> isAccessibilityElement returns true for the view, so it feels like there's
>> something else I'm missing... any ideas/help appreciated!
>>
>> Thanks,
>> Charlie
_______________________________________________
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