Regedit:  Implemented accelerator keys
Modified: trunk/reactos/subsys/system/regedit/main.c
Modified: trunk/reactos/subsys/system/regedit/resource.h
Modified: trunk/reactos/subsys/system/regedit/rsrc.rc

Modified: trunk/reactos/subsys/system/regedit/main.c
--- trunk/reactos/subsys/system/regedit/main.c	2005-11-28 23:54:06 UTC (rev 19736)
+++ trunk/reactos/subsys/system/regedit/main.c	2005-11-28 23:58:49 UTC (rev 19737)
@@ -242,11 +242,11 @@
     if (!InitInstance(hInstance, nCmdShow)) {
         return FALSE;
     }
-    hAccel = LoadAccelerators(hInstance, (LPCTSTR)IDC_REGEDIT);
+    hAccel = LoadAccelerators(hInstance, MAKEINTRESOURCE(ID_ACCEL));
 
     /* Main message loop */
     while (GetMessage(&msg, (HWND)NULL, 0, 0)) {
-        if (!TranslateAccelerator(msg.hwnd, hAccel, &msg)
+        if (!TranslateAccelerator(hFrameWnd, hAccel, &msg)
             && !TranslateChildTabMessage(&msg)) {
             TranslateMessage(&msg);
             DispatchMessage(&msg);

Modified: trunk/reactos/subsys/system/regedit/resource.h
--- trunk/reactos/subsys/system/regedit/resource.h	2005-11-28 23:54:06 UTC (rev 19736)
+++ trunk/reactos/subsys/system/regedit/resource.h	2005-11-28 23:58:49 UTC (rev 19737)
@@ -206,4 +206,6 @@
 #define ID_FAVORITES_MIN                2100
 #define ID_FAVORITES_MAX                2999
 
+#define ID_ACCEL                        3000
+
 #define IDC_STATIC                      -1

Modified: trunk/reactos/subsys/system/regedit/rsrc.rc
--- trunk/reactos/subsys/system/regedit/rsrc.rc	2005-11-28 23:54:06 UTC (rev 19736)
+++ trunk/reactos/subsys/system/regedit/rsrc.rc	2005-11-28 23:58:49 UTC (rev 19737)
@@ -21,6 +21,15 @@
 #include "windows.h"
 #include "resource.h"
 
+ID_ACCEL ACCELERATORS
+{
+    VK_DELETE, ID_EDIT_DELETE, VIRTKEY, NOINVERT
+    "^F", ID_EDIT_FIND
+    VK_F3, ID_EDIT_FINDNEXT, VIRTKEY, NOINVERT
+    VK_F5, ID_VIEW_REFRESH, VIRTKEY, NOINVERT
+    VK_F1, ID_HELP_HELPTOPICS, VIRTKEY, NOINVERT
+}
+
 /* define language neutral resources */
 
 LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL