Pressing ENTER when a value is selected in the listview will open the edit dialog.
authorEric Kohl <eric.kohl@reactos.org>
Tue, 26 Oct 2004 11:05:49 +0000 (11:05 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 26 Oct 2004 11:05:49 +0000 (11:05 +0000)
svn path=/trunk/; revision=11462

reactos/subsys/system/regedit/listview.c

index edeb07e..2aea225 100644 (file)
@@ -403,14 +403,15 @@ BOOL ListWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result)
                     
             ListView_SortItems(hWnd, CompareFunc, (WPARAM)hWnd);
             return TRUE;
-        case NM_DBLCLK: 
+        case NM_DBLCLK:
+        case NM_RETURN:
             {
                 SendMessage(hFrameWnd, WM_COMMAND, MAKEWPARAM(ID_EDIT_MODIFY, 0), 0);
             }
             return TRUE;
-       case NM_SETFOCUS:
-           g_pChildWnd->nFocusPanel = 0;
-           break;
+        case NM_SETFOCUS:
+            g_pChildWnd->nFocusPanel = 0;
+            break;
         case LVN_BEGINLABELEDIT:
             {
               PLINE_INFO lineinfo;