On Mon, 30 Mar 2026 15:47:35 GMT, Ambarish Rapte <[email protected]> wrote:

>> - Create implementation of protocol;
>> - Wire new implementation to TEXT_AREA and TEXT_FIELD roles;
>> - Add supporting method to store and request java side role;
>> - Add method to retrieve node attribute for the specified parameter;
>
> modules/javafx.graphics/src/main/native-glass/mac/a11y/JFXNavigableTextAccessibility.m
>  line 127:
> 
>> 125: {
>> 126:     return nil; //For now. Once we have multiselection text area we 
>> might revisit it.
>> 127: }
> 
> Removing these two methods does not throw any error. so, looks like 
> overriding is not mandatory.

Removing these two methods cause VO to stop doing announcements when moving 
cursor or editing anywhere but the very beginning and the very end of the text 
field. Seems like if we do not override these methods the default 
implementation is being called from NSObject and it does something that messes 
up with the accessibility event routing which causes selection change events to 
be discarded before they reach our code.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2130#discussion_r3011735189

Reply via email to