Community
Participate
Working Groups
I20100831-1001, follow-up to bug 27996 When one of the other 4 push buttons in the Find/Replace dialog has focus (i.e. not the Find button and not any other control), Windows considers the focused button as temporary default button. But in HEAD, when I tab to the Close button and then press (Shift+)Enter, the find action is executed. The special code for (Shift+)Enter handling should not be active in that case.
> 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.