Integrated: 8155030: The Menu Mnemonics are always displayed for GTK LAF
Abhishek Kumar
abhiscxk at openjdk.org
Fri Jul 12 12:41:03 UTC 2024
On Mon, 29 Apr 2024 09:00:46 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
> In GTK LAF, the menu mnemonics are always displayed which is different from the native behavior. In native application **(tested with gedit for normal buttons and tested with libreoffice for menu**), the menu mnemonics toggle on press of `ALT` key. Menu mnemonics are hidden initially and then toggles between show/hide on `ALT` press.
> Proposed fix is to handle the `ALT` key press for GTK LAF and mimic the native behavior. Fix is similar to the `ALT` key processing in Windows LAF. Automated test case is added to verify the fix and tested in Ubuntu and Oracle linux.
>
> CI testing is green and link attached in JBS.
This pull request has now been integrated.
Changeset: 2fc7eb44
Author: Abhishek Kumar <abhiscxk at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2fc7eb44a018974734832576a0a2631ae747e0cd
Stats: 724 lines in 20 files changed: 414 ins; 225 del; 85 mod
8155030: The Menu Mnemonics are always displayed for GTK LAF
Hides mnemonics on menus, buttons, and labels for GTK L&F.
Moved shared code for hiding mnemonics into
sun/swing/MnemonicHandler and AltProcessor to avoid code duplication.
Reviewed-by: prr, tr, achung, dnguyen, aivanov
-------------
PR: https://git.openjdk.org/jdk/pull/18992
More information about the client-libs-dev
mailing list