[COMCTL32][USER32] ComboBox: Do default processing on WM_SYSKEYDOWN (#6152)

Based on KRosUser's combo.patch. Enable Alt+F4 on ComboBox.
Do default processing on WM_SYSKEYDOWN if necessary.
CORE-18231
This commit is contained in:
Katayama Hirofumi MZ 2023-12-11 22:04:18 +09:00 committed by GitHub
parent ea59e93e31
commit 04b1e8945b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -1890,8 +1890,15 @@ static LRESULT CALLBACK COMBO_WindowProc( HWND hwnd, UINT message, WPARAM wParam
case WM_SYSKEYDOWN:
if ( KEYDATA_ALT & HIWORD(lParam) )
if( wParam == VK_UP || wParam == VK_DOWN )
#ifdef __REACTOS__
{
#endif
COMBO_FlipListbox( lphc, FALSE, FALSE );
return 0;
#ifdef __REACTOS__
}
break;
#endif
case WM_KEYDOWN:
if ((wParam == VK_RETURN || wParam == VK_ESCAPE) &&

View file

@ -1989,8 +1989,15 @@ LRESULT WINAPI ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPAR
if ( KEYDATA_ALT & HIWORD(lParam) )
#endif
if( wParam == VK_UP || wParam == VK_DOWN )
#ifdef __REACTOS__
{
#endif
COMBO_FlipListbox( lphc, FALSE, FALSE );
return 0;
#ifdef __REACTOS__
}
break;
#endif
case WM_KEYDOWN:
if ((wParam == VK_RETURN || wParam == VK_ESCAPE) &&