From b7bb42d9d42547e3845baa19542ffa4a918ebade Mon Sep 17 00:00:00 2001
From: Dmitry Timoshkov <dmitry@sloboda.ru>
Date: Sat, 25 Dec 1999 22:52:44 +0000
Subject: [PATCH] Restore erroneously deleted lines.

---
 windows/dialog.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/windows/dialog.c b/windows/dialog.c
index 913eb85eb1a..97dc5329e26 100644
--- a/windows/dialog.c
+++ b/windows/dialog.c
@@ -1157,6 +1157,13 @@ static BOOL DIALOG_IsAccelerator( HWND hwnd, HWND hwndDlg, WPARAM vKey )
                             /* and bump it on to next */
                             SendMessageA( hwndDlg, WM_NEXTDLGCTL, 0, 0);
                         }
+                        else if (dlgCode & DLGC_BUTTON)
+                        {
+                            /* send command message as from the control */
+                            SendMessageA( hwndDlg, WM_COMMAND, 
+                                MAKEWPARAM( LOWORD(wndPtr->wIDmenu), BN_CLICKED ),
+                                (LPARAM)hwndControl );
+                        }
 
                         RetVal = TRUE;
 			WIN_ReleaseWndPtr(wndPtr);
-- 
GitLab