Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348716

Summary: Duplicate mnemonic in FileDialog and DirectoryDialog for de_DE locale
Product: [Eclipse Project] Platform Reporter: Zeb Ford-Reitz <zeb.ford-reitz>
Component: SWTAssignee: Arun Thondapu <arunkumar.thondapu>
Status: CLOSED WORKSFORME QA Contact:
Severity: minor    
Priority: P3 CC: remy.suen, Silenio_Quarti, xixiyan
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
screenshot of DirectoryDialog with highlighted duplicate mnemonics
none
screenshot of FileDialog with highlighted duplicate mnemonics none

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.