Commit a7fb6c89 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/treeview: Send TVN_KEYDOWN in response of WM_KEYDOWN.

parent 3f8bda94
...@@ -206,7 +206,7 @@ static const struct message parent_expand_seq[] = { ...@@ -206,7 +206,7 @@ static const struct message parent_expand_seq[] = {
}; };
static const struct message parent_expand_kb_seq[] = { static const struct message parent_expand_kb_seq[] = {
{ WM_NOTIFY, sent|id|optional, 0, 0, TVN_KEYDOWN }, { WM_NOTIFY, sent|id, 0, 0, TVN_KEYDOWN },
{ WM_NOTIFY, sent|id, 0, 0, TVN_ITEMEXPANDINGA }, { WM_NOTIFY, sent|id, 0, 0, TVN_ITEMEXPANDINGA },
{ WM_NOTIFY, sent|id, 0, 0, TVN_ITEMEXPANDEDA }, { WM_NOTIFY, sent|id, 0, 0, TVN_ITEMEXPANDEDA },
{ WM_CHANGEUISTATE, sent|optional }, { WM_CHANGEUISTATE, sent|optional },
...@@ -221,7 +221,7 @@ static const struct message parent_collapse_2nd_kb_seq[] = { ...@@ -221,7 +221,7 @@ static const struct message parent_collapse_2nd_kb_seq[] = {
}; };
static const struct message parent_expand_empty_kb_seq[] = { static const struct message parent_expand_empty_kb_seq[] = {
{ WM_NOTIFY, sent|id|optional, 0, 0, TVN_KEYDOWN }, { WM_NOTIFY, sent|id, 0, 0, TVN_KEYDOWN },
{ WM_CHANGEUISTATE, sent|optional }, { WM_CHANGEUISTATE, sent|optional },
{ 0 } { 0 }
}; };
......
...@@ -5201,11 +5201,15 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam) ...@@ -5201,11 +5201,15 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam)
{ {
/* If it is non-NULL and different, it will be selected and visible. */ /* If it is non-NULL and different, it will be selected and visible. */
TREEVIEW_ITEM *newSelection = NULL; TREEVIEW_ITEM *newSelection = NULL;
TREEVIEW_ITEM *prevItem = infoPtr->selectedItem; TREEVIEW_ITEM *prevItem = infoPtr->selectedItem;
NMTVKEYDOWN nmkeydown;
TRACE("%lx\n", wParam); TRACE("%lx\n", wParam);
nmkeydown.wVKey = wParam;
nmkeydown.flags = 0;
TREEVIEW_SendRealNotify(infoPtr, TVN_KEYDOWN, &nmkeydown.hdr);
if (prevItem == NULL) if (prevItem == NULL)
return FALSE; return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment