From: Vadim Zeitlin Date: Sat, 10 Mar 2007 16:08:46 +0000 (+0000) Subject: allow using numpad enter key to activate the default button too (patch 1640446) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/deda45e8c2d4ea254d1053036736e6942c176b83?ds=inline allow using numpad enter key to activate the default button too (patch 1640446) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 8c52e9f221..8e587d2306 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -1586,7 +1586,7 @@ bool wxApp::MacSendCharEvent( wxWindow* focus , long keymessage , long modifiers wxWindow* focus = wxFindWinFromMacWindow( FrontWindow() ) ; if ( focus ) { - if ( keyval == WXK_RETURN ) + if ( keyval == WXK_RETURN || keyval == WXK_NUMPAD_ENTER ) { wxTopLevelWindow *tlw = wxDynamicCast(wxGetTopLevelParent(focus), wxTopLevelWindow); if ( tlw && tlw->GetDefaultItem() )