On Fri, 11 Nov 2022 09:12:21 GMT, Artem Semenov <[email protected]> wrote:
>> src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java line >> 574: >> >>> 572: return; >>> 573: } >>> 574: as.addAccessibleSelection(i); >> >> I would like to clarify one initial question. Why we cannot use >> `clearAccessibleSelection `to clean the current selection and then add a new >> one by the `addAccessibleSelection`? > > We tried to do this, it leads to an endless repetition of the selected line > until it freezes. Probably because of the endless notifications loop? implementation of addSelectionInterval looks similar to setSelectionInterval. In some cases the addSelectionInterval just call setSelectionInterval. ------------- PR: https://git.openjdk.org/jdk/pull/8578
