Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336863 - Missing underline for Hotkey "g" on SUSE Linux
Summary: Missing underline for Hotkey "g" on SUSE Linux
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2011-02-10 14:32 EST by B. Chen CLA
Modified: 2018-05-15 15:04 EDT (History)
4 users (show)

See Also:


Attachments
SWT snippet that demonstrates the problem (1.27 KB, text/plain)
2011-02-10 14:37 EST, B. Chen CLA
no flags Details
See picture for expected result (20.05 KB, image/jpeg)
2011-02-10 14:56 EST, B. Chen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.