Bug 419823 - SWT Renderer: Mnemonic for MMenuElement is only honored for MHandledMenuItem elements
Summary: SWT Renderer: Mnemonic for MMenuElement is only honored for MHandledMenuItem ...
Status: CLOSED DUPLICATE of bug 405718
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2013-10-18 05:45 EDT by Thorsten Hake CLA
Modified: 2021-02-13 06:15 EST (History)
3 users (show)

See Also:


Attachments
Example application demonstrating the bug (16.29 KB, application/zip)
2013-10-18 05:45 EDT, Thorsten Hake CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Hake CLA 2013-10-18 05:45:14 EDT
Created attachment 236642 [details]
Example application demonstrating the bug

The mnemonic attribute that is defined in MMenuElement is only honored by the SWT renderer for elements of type MHandledMenuItem (Implemenated in HandledContributionItem#updateMenuItem).

For all other subtypes of MMenuElement (such as MMenu), the attribute is not honored. 

I have attached a demonstration of this bug. I used the e4 sample application and only changed the mnemonic attribute in the "File" menu (MMenu) to "F" and the mnemonic attribute in the "Open" HandledMenuItem (MHandledMenuItem) to "O". The "F" mnemonic isn't honored, but the "O" mnemonic is.

For a workaround one may misuse the label property. Simply put a "&" in front of the character that should be the mnemonic. But as the model clearly has been desinged to separate the label from the mnomic character (otherwise the mnemonics attribute wouldn't exist), this does seem like no satisfying solution to me.
Comment 1 Eclipse Genie CLA 2019-10-09 15:31:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Rolf Theunissen CLA 2021-02-13 06:15:14 EST

*** This bug has been marked as a duplicate of bug 405718 ***