RFR: 4795384: GTK+ JFileChooser buttons should have mnemonics [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Aug 19 09:04:51 UTC 2024


On Mon, 19 Aug 2024 06:21:47 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

>>> mnemonics if gtk dialog were updated by the https://bugs.openjdk.org/browse/JDK-8080628, the save button was not changes since it is a default button in that dialog.
>> 
>> Seems like the fix is to remove mnemonics for Metal Look and Feel. 
>> Mnemonics for Open, Save and Cancel buttons are present on native side (checked with gedit application on ubuntu 22.04). So, I think mnemonics for Save button should also be there in GTK L&F.
>
>> Hmm, the `&S` is already used by
>> 
>> ```
>> FileChooser.pathLabel.textAndMnemonic=&Selection:
>> ```
>> 
>> It looks like that `&S` is more common for the save action, so probably we might want to change the `&Selection:` to something else, e.g. `S&election:` Any thoughts?
> 
> Checked in native side and `&S` is the mnemonics for Save button. So, I think it's right to have `&S` as mnemonics for `Save` and as you suggested `&e` for `Selection`.

JDK-8080628 removes these Save and Open mnemonics from gtk and it does from all locales, not only the default locale, I guess for some customer escalation, so it needs to be verified with the fix author if it will regress the expectation.

If you want to reinstate the mnemonics, then I guess it needs to be reinstated for all locales gtk_de.properties, gtk_es.properties, gtk_fr.properties etc simultaneously

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20612#discussion_r1721450408


More information about the client-libs-dev mailing list