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

List:       openjdk-2d-dev
Subject:    Re: RFR: 8306119: Many components respond to a mouse event by requesting focus without supplying the
From:       Prasanta Sadhukhan <psadhukhan () openjdk ! org>
Date:       2023-05-29 8:45:12
Message-ID: MUDoTZSjvQt7oux5SAKbJEiUC_UrLF2DtOhLtZA8d00=.36a5bc9a-9e37-4025-902d-5d45d1c2dc48 () github ! com
[Download RAW message or body]

On Mon, 29 May 2023 05:58:24 GMT, Prasanta Sadhukhan <psadhukhan@openjdk.org> wrote:

> > Many Swing components request a focus transfer in response to a mouse event, but \
> > fail to supply a Cause when requesting focus. A focus event listener will find \
> > the cause to be UNKNOWN, but MOUSE_EVENT would be more appropriate.  Fixed by \
> > adding MOUSE_EVENT cause to requestFocus() when it is called for mouse events... 
> > All jtreg/jck tests are ok..
> 
> Prasanta Sadhukhan has updated the pull request incrementally with one additional \
> commit since the last revision: 
> Keep mouse only focus events

I have raised [JDK-8309041](https://bugs.openjdk.org/browse/JDK-8309041) for \
SwingUtilities focus upgrade

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

PR Comment: https://git.openjdk.org/jdk/pull/14004#issuecomment-1566767604


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

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