Accessibility Service Breaking Compose Navigation inside TextFields

12 hours ago 4
ARTICLE AD BOX

Accessibility Service Causing DPAD Navigation Broken:
When flagRequestFilterKeyEvents is set, every hardware key is delivered to the service first, and re-injected into the input pipeline after the service returns. For XML, ViewRootImpl performs focus search on the re-injected
event and moves focus to the next focusable view. For Compose, BasicTextField traps DPAD UP/DOWN for cursor movement and never releases them to the framework focus-search path — so re-injected events get consumed by the field with no visible effect.
Only issue im having is when a text field is focused (cursor visible) i cant move up down with Dpad and while service is off then i can move even im not having up down events being consumed
Any Clues?
i tried to manullay find next focusable component in tree and it navigates fine but if a text field is multi-line then it directly jumps to next field (also i dont want to manually make if else)

Muhammad Awais Shan's user avatar

Read Entire Article