| Summary: | Mnemonic on label field does not work | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Andreas Hoegger <Andreas.Hoegger> | ||||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | eclipse.felipe | ||||||
| Version: | 3.7 | ||||||||
| Target Milestone: | 3.8 M1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 199918 [details]
Patch for all operating systems
good catch, I will test/review/relase the patch today. please test it http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=caaf50eaf0e8d931eaa9f3e9c353662760983ea0 i changed the code a bit to use only one local variable and removed the code fro qt and mofit (as we are not supporting them anymore). and thank you very much for the patch! +1 Thank you Felipe. |
Created attachment 199917 [details] Test class to reproduce the described behavior. Mnemonics on labels are implemented to set the focus to the next focus-able control. This works fine if in the same composite is a focus-able control. If not the mnemonic gets ignored. Responsible for this bug is the 'Label.mnemonicHit' method which checks the index against this also in parent composites. See also attached 'MnemonicLabelTest.java'.