Christoph von Wittich : comctl32/treeview: Notify the parent on a return key press.

Alexandre Julliard julliard at winehq.org
Wed May 7 15:18:15 CDT 2014


Module: wine
Branch: master
Commit: 4cc503d164ab00b75567d1a206a303c373cbe044
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4cc503d164ab00b75567d1a206a303c373cbe044

Author: Christoph von Wittich <Christoph_vW at ReactOS.org>
Date:   Tue May  6 23:27:44 2014 +0200

comctl32/treeview: Notify the parent on a return key press.

---

 dlls/comctl32/treeview.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index dcc2be4..bb42b21 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -5259,6 +5259,10 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam)
 	newSelection = TREEVIEW_GetNextListItem(infoPtr, prevItem);
 	break;
 
+    case VK_RETURN:
+        TREEVIEW_SendSimpleNotify(infoPtr, NM_RETURN);
+    break;
+
     case VK_HOME:
 	newSelection = infoPtr->root->firstChild;
 	break;




More information about the wine-cvs mailing list