MobA11y Blog

N-ARIA: Native Mobile Accessibility, part 8 of 9

Focus Against Input Focus

MobA11y ·

Focus vs Input Focus: a keyboard focus ring on Tap Me, and accessibility focus on the text Hello there, read aloud

Mobile has two kinds of focus, and web developers used to one tend to mix them up.

Input focusAccessibility focus
What it meansWhere typing and keyboard actions goWhat the screen reader is reading now
Who moves itThe keyboard, or tapping a fieldVoiceOver or TalkBack swipes and touches
What lands on itOnly things you can act on, like "Tap Me"Anything with something to say, like the text "Hello there!"
iOSFirst responderVoiceOver's cursor (UIAccessibility.post(.layoutChanged, argument:) moves it)
AndroidrequestFocus()Accessibility focus (ACTION_ACCESSIBILITY_FOCUS)

They often sit in different places at once. Moving one doesn't move the other, so when a screen changes, decide deliberately where each should land.

Next in the series