| Summary: | [find/replace] more buttons should not take focus when mnemonic is pressed in text fields | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> | ||||
| Component: | Text | Assignee: | Rajesh <rthakkar> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | deepakazad | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Markus Keller
Created attachment 178707 [details]
Patch
Thanks, committed to HEAD with a bugfix and a few nitpicks:
- added "&& button.isEnabled()" to the traverse listener (in regex mode, some buttons are disabled)
- "(button.getStyle() & SWT.PUSH) == SWT.PUSH" should be written as
"(button.getStyle() & SWT.PUSH) != 0" (shorter, removes redundancy).
- if-else clauses should be written with either blocks or with no blocks (no mixing)
- replaced "a map" with "{@link #fMnemonicButtonMap}"
Verified for 3.7M2 on Linux with I20100914-0100. |