Bug 213238

Summary: AX: Erratic form focus change when VoiceOver is on and a hardware keyboard is connected
Product: WebKit Reporter: jonathan.lui
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: adam.liptrot, dbates, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: iPhone / iPad   
OS: iOS 13   

Description jonathan.lui 2020-06-16 00:52:35 PDT
test case:
https://dev.r8dhex.net/testcase.html

With a bluetooth keyboard connected, and voiceover on. This issue does not happen with voiceover-only, or keyboard-only.

Once the focus is on the first input field (type=password), moving focus to the button "Something" using the keyboard navigation, the focus immediately moves back to the input field.

I've tried Tab and Ctrl+Tab to move to the button, and it still goes back.

Same thing happens when the focus is on the second text input field, if I try to go back to the Something button (Shift+Tab or Ctrl+Shift+Tab), it goes back to the text input field.

However, when going from text input field to an adjacent text input field, focus moves, and doesn't go back. Pressing Tab rapidly, to move to different input sometimes works. Touchscreen navigation does not cause the focus to go back.
Comment 1 Radar WebKit Bug Importer 2020-06-16 00:52:46 PDT
<rdar://problem/64396937>
Comment 2 jonathan.lui 2020-06-16 01:00:32 PDT
(In reply to Radar WebKit Bug Importer from comment #1)
> <rdar://problem/64396937>

Have to mention, full keyboard access is on, ipados v13.5.1
Comment 3 Adam Liptrot 2021-04-29 10:08:22 PDT
Using https://design-system.service.gov.uk/patterns/bank-details/default/index.html as a test page.

Observed on iPad 14.4 using swipe navigation.
This happens if a bluetooth keyboard has been paired and is listed in the 'remembered devices' list, even if the keyboard is powered down and bluetooth on the iPad is turned off.
If the keyboard is removed from the list the bug goes away.

Updated iPad to 14.5 and issue persists, although now once a keyboard has been paried the issue remains, even after the keyboard has been removed and bluetooth turned off.