From 460881ce827fd7e9aa53f623a64abea71d33590d Mon Sep 17 00:00:00 2001 From: Norman Stevens Date: Sun, 28 Feb 1999 09:59:32 +0000 Subject: [PATCH] Don't check children of disabled or invisible controls for dialog keyboard accelerators. Fixes problems with dialogs with tab boxes. --- windows/dialog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/windows/dialog.c b/windows/dialog.c index bec39652886..8c0195e8fd3 100644 --- a/windows/dialog.c +++ b/windows/dialog.c @@ -1080,8 +1080,12 @@ static BOOL DIALOG_IsAccelerator( HWND hwnd, HWND hwndDlg, WPARAM vKey ) break; } } + hwndNext = GetWindow( hwndControl, GW_CHILD ); } - hwndNext = GetWindow( hwndControl, GW_CHILD ); + else + { + hwndNext = 0; + } if (!hwndNext) { hwndNext = GetWindow( hwndControl, GW_HWNDNEXT );