Summary: | [win32] Menu "&Se&arch" does not respond to underlined shortcut Alt+A | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Gernot Hüller <g.hueller> | ||||
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
Status: | REOPENED --- | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | Lars.Vogel, loskutov, rolf.theunissen, sbouchet, tom.schindl, wim.jongman | ||||
Version: | 4.18 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows 10 | ||||||
See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=570768 https://bugs.eclipse.org/bugs/show_bug.cgi?id=405718 |
||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Gernot Hüller
2021-01-28 11:56:40 EST
Just to make sure we talk about mnemonics and not shortcuts. (In reply to Gernot Hüller from comment #0) Gernot, I do not have this issue. alt-a gives me the search menu. Did you install additional plugins? If so can you do: ctrl+3 -> "copy config data to clipboard" -> paste in file -> attach Also, can you try window/new window and test if the behavior is different? I found the culprit! After your hint about installed plugins, I looked what I did and performed a few more installs from scratch. It is true, Eclipse IDE by itself works fine, even in the flavour "for Enterprise Java Developers". However, when I add stuff from JBoss after installation, the problem begins. (And it also remedies when I uninstall everything jboss) I do not know which exact plugin it is, but when I install the "JBoss Web and Java EE Development" option, trouble begins. So of course this eclipse IDE bug should be closed and I will write the JBoss colleagues. I dont know if it is legit if I myself edit the state of this ticket, so I kindly ask someone else to close it. reported to jboss tools as https://issues.redhat.com/browse/JBIDE-27641 Thanks for the feedback After installing the JBoss tooling the search menu is defined as "&Se&earch", that is, with two mnemonics. This is by itself tricky, and no clue what the effect on the other platforms is. That should be fixed in JBoss The second mnemonic is showed as underlined, however only the first mnemonic opens the menu. This is a SWT (or even win32) bug. I can confirm that this is a Windows bug, I can reproduce it with plain win32 API. When a menu item is created with multiple ampersands, the first one is used as access key, while the last one is underlined. A workaround would be to filter the strings to only accept one ampersand. How do other platforms handle multiple mnemonics? OS-X has no concept of mnemonics ;-) (In reply to Rolf Theunissen from comment #7) > How do other platforms handle multiple mnemonics? Rolf, could you provide a trivial SWT snippet that shows the issue? I could check how that works on GTK. Created attachment 285547 [details]
SWT snippet to test the behavior
(In reply to Gernot Hüller from comment #4) > reported to jboss tools as https://issues.redhat.com/browse/JBIDE-27641 From that bug report, the two mnemonics are created because of a menuContribution that defines a label with mnemonic and as well it defines a mnemonic attribute. In this case the attribute is incorrectly defined. But in the general case, there is some undefined interaction in using the two mechanism for mnemonics. The same confusion is true for the E4 model, see Bug 405718. (In reply to Rolf Theunissen from comment #6) > The second mnemonic is showed as underlined, however only the first mnemonic > opens the menu. This is a SWT (or even win32) bug. Same on Lunux / GTK 3.22 with your &Foo&Bar menu example. Alt+F opens the menu, Alt+B doesn't, but both F and B are underlined. |