RFR: 8306119: Many components respond to a mouse event by requesting focus without supplying the MOUSE_EVENT cause [v4]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Mon May 29 05:58:24 UTC 2023
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/14004/files
- new: https://git.openjdk.org/jdk/pull/14004/files/ee4afbbd..0ce48d00
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=14004&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=14004&range=02-03
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/14004.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14004/head:pull/14004
PR: https://git.openjdk.org/jdk/pull/14004
More information about the client-libs-dev
mailing list