]> git.saurik.com Git - wxWidgets.git/commitdiff
allow using numpad enter key to activate the default button too (patch 1640446)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Mar 2007 16:08:46 +0000 (16:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Mar 2007 16:08:46 +0000 (16:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/app.cpp

index 8c52e9f221d625a17794475f4ecd4d42b9a3760c..8e587d23061f052ef07229f42fe1fa22e90508a4 100644 (file)
@@ -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() )