RFR: 8155030: The Menu Mnemonics are always displayed for GTK LAF [v6]

Abhishek Kumar abhiscxk at openjdk.org
Wed Jun 19 11:22:15 UTC 2024


On Tue, 18 Jun 2024 16:26:49 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Can we use or even re-use the logic in Windows L&F to display and hide menu mnemonics?

For windows behavior is different than linux.
https://github.com/openjdk/jdk/pull/18992#issuecomment-2100033545

I don't think that the logic in Windows L&F can be reused here.

> Is this fix limited to menu mnemonics? Does it apply to all mnemonics in components?

As of now verified with the menu elements.

> I think you have to keep track of whether `altProcessor` was installed or not. If the value of `"RootPane.altPress"` changes, the listener may be left installed.

Yeah, if the value of "RootPane.altPress" is set to false, the listener won't be removed. Will update.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18992#discussion_r1645974421
PR Review Comment: https://git.openjdk.org/jdk/pull/18992#discussion_r1645976963


More information about the client-libs-dev mailing list