RFR: JDK-8090647: Mnemonics : on windows we should cancel the underscore latch when an app loses focus.

Kevin Rushforth kcr at openjdk.org
Wed Feb 15 16:19:23 UTC 2023


On Sun, 12 Feb 2023 22:13:41 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:

> This fix hides mnemonics when the Scene's Window loses focus.
> 
> Before integration, we need to make sure this is correct behavior for Mac and Linux as well. It is correct for Windows.
> 
> How to test:
> 
> - Create a control with a mnemonic
> - Alt-tab to another window (mnemonics appear when alt is pressed)
> 
> Before:
> - Window shows visible mnemonic still and reacts on them when returning
> 
> After:
> - Window hides mnemonics when focus is lost and doesn't react on them when returning

The equivalent of ALT-TAB on macOS is CMD-TAB, but I don't know the bug can happen on macOS (it was reported on Windows).

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

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


More information about the openjfx-dev mailing list