Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348716 - Duplicate mnemonic in FileDialog and DirectoryDialog for de_DE locale
Summary: Duplicate mnemonic in FileDialog and DirectoryDialog for de_DE locale
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux-GTK
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Arun Thondapu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 08:35 EDT by Zeb Ford-Reitz CLA
Modified: 2018-12-14 12:52 EST (History)
3 users (show)

See Also:


Attachments
screenshot of DirectoryDialog with highlighted duplicate mnemonics (33.57 KB, image/png)
2011-06-08 08:35 EDT, Zeb Ford-Reitz CLA
no flags Details
screenshot of FileDialog with highlighted duplicate mnemonics (15.24 KB, image/png)
2011-06-08 08:36 EDT, Zeb Ford-Reitz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zeb Ford-Reitz CLA 2011-06-08 08:35:31 EDT
Created attachment 197591 [details]
screenshot of DirectoryDialog with highlighted duplicate mnemonics

When running an SWT (Linux GTK) application in German, the "O" mnemonic is used twice both in the FileDialog and the DirectoryDialog. As a result of this duplication, neither kind of dialog can be closed (confirmed with OK) with the key combination "Alt+O".

I have attached two screenshots (one for FileDialog and one for DirectoryDialog) that demonstrate the problem.
Comment 1 Zeb Ford-Reitz CLA 2011-06-08 08:36:12 EDT
Created attachment 197592 [details]
screenshot of FileDialog with highlighted duplicate mnemonics
Comment 2 Remy Suen CLA 2011-06-08 08:55:13 EDT
Do you get this problem when you try to save a file in gedit?
Comment 3 Zeb Ford-Reitz CLA 2011-06-08 09:21:31 EDT
I do not have this problem in gedit because the confirmation button is labeled "Speichern" with the mnemonic on the "S". As a result, there is no duplication of mnemonics, and I can close/confirm the gedit save dialog with Alt+S.
Comment 4 Silenio Quarti CLA 2011-10-24 22:54:54 EDT
We should use GTK_STOCK_OPEN/GTK_STOCK_SAVE (depending of SWT.OPEN/SWT.SAVE style bit) instead of GTK_STOCK_OK for FileDialog.  I am not sure what is the right stock button for the DirectoryDialog (probaly GTK_STOCK_OPEN).

Arun, please could you make the change for FileDialog and investigate the DirectoryDialog?
Comment 5 Xi Yan CLA 2018-11-30 16:35:51 EST
Do you have a snippet to reproduce this issue?
Comment 6 Xi Yan CLA 2018-12-14 12:52:25 EST
Closing this ticket now as there has been no response in awhile. Please reopen
it if you can reproduce the issue on GTK3.22/24 using SWT 4.10.