git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11316
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
// FIXME: this should be handled by
// wxNavigationKeyEvent handler and not here!!
}
// FIXME: this should be handled by
// wxNavigationKeyEvent handler and not here!!
wxButton *btn = wxDynamicCast(GetDefaultItem(),
wxButton);
if ( btn && btn->IsEnabled() )
wxButton *btn = wxDynamicCast(GetDefaultItem(),
wxButton);
if ( btn && btn->IsEnabled() )
- // else: but if it does not it makes sense to make
- // it work like a TAB - and that's what we do.
- // Note that Ctrl-Enter always works this way.
- }
+ else // no default button
+ {
+ // no special function for enter and don't even
+ // let IsDialogMessage() have it: it seems to
+ // do something really strange with it
+ return FALSE;
+ }
+ }
// let ::IsDialogMessage() do almost everything and handle just the
// things it doesn't here: Ctrl-TAB for switching notebook pages
if ( msg->message == WM_KEYDOWN )
// let ::IsDialogMessage() do almost everything and handle just the
// things it doesn't here: Ctrl-TAB for switching notebook pages
if ( msg->message == WM_KEYDOWN )
if ( ::IsDialogMessage(GetHwnd(), msg) )
{
if ( ::IsDialogMessage(GetHwnd(), msg) )
{