[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Integrated: 8284281: [Accessibility] [Win] [Narrator] Exceptions with TextArea & TextField when dele
From:       Ambarish Rapte <arapte () openjdk ! org>
Date:       2022-08-29 13:41:03
Message-ID: rUngn5CZaL3VX45Xfsie0fY2ePufc-3Ig4NjJdd128k=.1e97d625-1702-4c98-9ce5-d7a3b39feee7 () github ! com
[Download RAW message or body]

On Wed, 24 Aug 2022 13:50:32 GMT, Ambarish Rapte <arapte@openjdk.org> wrote:

> Issue:
> When Narrator is running, 
> 1. Deleting last character from `TextField` throws `IllegalArgumentException`, and 
> 2. Deleting last character from `TextArea` throws `NPE`.
> 
> Fix:
> When character is deleted, we receive an offset larger by one than the current text \
> length. This scenario needs to be handled correctly. The change in `Text.java` \
> fixes the NPE with TextArea, and, The change in `WinTextRangeProvider.java` fixes \
> the IllegalArgumentException with TextField. 
> To observe the issue.
> 1. Run any program with TextField and/or TextArea
> 3. Launch Windows Narrator
> 4. Delete the last character from TextField / TextArea
> 5. Observe the related Exception

This pull request has now been integrated.

Changeset: 996eb84b
Author:    Ambarish Rapte <arapte@openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/996eb84b9df484fc78527ded311e7aa06aec56da
                
Stats:     2 lines in 1 file changed: 1 ins; 0 del; 1 mod

8284281: [Accessibility] [Win] [Narrator] Exceptions with TextArea & TextField when \
deleted last char

Co-authored-by: Kevin Rushforth <kcr@openjdk.org>
Reviewed-by: kcr, aghaisas

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

PR: https://git.openjdk.org/jfx/pull/884


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic