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:01:02 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
Can you provide a unit test?
Reviewers: @aghaisas @andy-goryachev-oracle
-------------
PR: https://git.openjdk.org/jfx/pull/1030
More information about the openjfx-dev
mailing list