| Summary: | [find/replace] (Shift+)Enter should always execute the current default button | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> | ||||||
| Component: | Text | Assignee: | Rajesh <rthakkar> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | daniel_megert, deepakazad | ||||||
| Version: | 3.7 | Flags: | markus.kell.r:
review+
|
||||||
| Target Milestone: | 3.7 M2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Markus Keller
> Windows considers the focused button as temporary default button.
Note that this is *not* the case on Mac OS X. There, the default button stays the default, so the current behavior would actually be correct on that platform.
Please check if you can find out the temporary default button on Windows via SWT APIs. If you can't, I think we should use Util.isMac() and keep the current behavior on that platform.
Created attachment 178075 [details]
Fix
I couldn't find a way in SWT to lookup the 'temporary default' button.
The attached fix works on GTK and Windows.
Created attachment 178119 [details]
Fix
Added one more check.
The check for "!fFindNextButton.isFocusControl()" is unnecessary. Removed that, removed unnecessary parentheses, and committed to HEAD. Verified for 3.7M2 on Linux with I20100914-0100. |