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

Bug 336863

Summary: Missing underline for Hotkey "g" on SUSE Linux
Product: [Eclipse Project] Platform Reporter: B. Chen <cbeth>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, kleind, mukund, pwebster
Version: 3.6.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
SWT snippet that demonstrates the problem
none
See picture for expected result none

Description B. Chen CLA 2011-02-10 14:32:34 EST
Build Identifier: 

Create a menu item and set the menu text to "S\u00fa&g\u00f3" ( means Hellp in Hungarian ). The underline is missing for "g". Move the "&" to any other character would display fine. 
This only happens on SUSE Linux, the underline displayed fine on Redhat and Ubuntu.

Reproducible: Always

Steps to Reproduce:
1. In RCP application
2. Create menu item
3. setText("S\u00fa&g\u00f3")

See attached sample code
Comment 1 B. Chen CLA 2011-02-10 14:37:06 EST
Created attachment 188717 [details]
SWT snippet that demonstrates the problem
Comment 2 Paul Webster CLA 2011-02-10 14:41:59 EST
In SUSE is ALT+G consumed by the default configuration of your window manager that you are using?

PW
Comment 3 Paul Webster CLA 2011-02-10 14:51:25 EST
I can't see an underline on my RHEL6 system either.  Hel&gp doesn't show an underline, but ALT+G will still open the menu.

PW
Comment 4 B. Chen CLA 2011-02-10 14:56:44 EST
Created attachment 188720 [details]
See picture for expected result
Comment 5 B. Chen CLA 2011-02-10 14:58:19 EST
In SUSE is ALT+G consumed by the default configuration of your window manager
that you are using?

I am not sure how to find that out. The ALT+G works on my application, except it is not been displayed.
Comment 6 Paul Webster CLA 2011-02-10 15:04:39 EST
(In reply to comment #5)
> I am not sure how to find that out. The ALT+G works on my application, except
> it is not been displayed.

Menu tmp = new Menu(helpItem);
helpItem.setMenu(tmp);
new MenuItem(tmp, SWT.PUSH).setText("Help");

Even though you can't see ALT+G, pressing it will open the Help menu.

PW
Comment 7 B. Chen CLA 2011-02-10 15:29:24 EST
(In reply to comment #6)
> (In reply to comment #5)
> > I am not sure how to find that out. The ALT+G works on my application, except
> > it is not been displayed.
> 
> Menu tmp = new Menu(helpItem);
> helpItem.setMenu(tmp);
> new MenuItem(tmp, SWT.PUSH).setText("Help");
> 
> Even though you can't see ALT+G, pressing it will open the Help menu.
> 
> PW

I confirm that even though I can't see the underline, ALT+G did bring up the help menu. ALT+G works fine. The only problem is that the underline is not displayed
Comment 8 Eric Williams CLA 2018-05-15 15:04:33 EDT
I cannot reproduce the issue on GTK3.22, 4.8 M7, and Fedora 28.