Withdrawn: 8319880: JTextField text selection doesn't stop if ended during loss of window focus
Kevin Rushforth
kcr at openjdk.org
Mon Jan 5 21:16:05 UTC 2026
On Mon, 1 Dec 2025 16:07:56 GMT, Anass Baya <abaya at openjdk.org> wrote:
> **Analysis :**
> The issue is that on Win32, if the window is not active, we dont receive mouse events because we release the capture
> So the problem is the following:
> We start selecting text from the right to the extreme left.
> Then we switch to another window( the window lose focus ), and we release the mouse
> But when we return to the window, the caret drag is still active and does not stop. as the window did not recieved the mouse release event
>
> **Proposed fix:**
> In the Caret class, we added a logic to ignore the drag if the focus was lost due to window switching unless a new mouse press happens
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/28582
More information about the client-libs-dev
mailing list