[SDK][INCLUDE] Don't navigate over size grip control with keyboard (#6914)

Add WS_GROUP style to the size grip to avoid the keyboard selection stuck.

Fixes keyboard navigation bug in the "Move to..." & "Copy to..." dialogs
that was making the button lose selection focus. CORE-19585
This commit is contained in:
Raúl Gutiérrez 2024-07-09 14:34:37 +02:00 committed by GitHub
parent 24a38b34ed
commit d4433ee0c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,8 @@ LayoutShowGrip(LAYOUT_DATA *pData, BOOL bShow)
if (pData->m_hwndGrip == NULL)
{
DWORD style = WS_CHILD | WS_CLIPSIBLINGS | SBS_SIZEGRIP;
/* CORE-19585: WS_GROUP set to avoid navigation over the grip control */
DWORD style = WS_GROUP | WS_CHILD | WS_CLIPSIBLINGS | SBS_SIZEGRIP;
pData->m_hwndGrip = CreateWindowExW(0, L"SCROLLBAR", NULL, style,
0, 0, 0, 0, pData->m_hwndParent,
NULL, GetModuleHandleW(NULL), NULL);