riched20: Ctrl+A should be allowed in read-only controls too

Krzysztof Foltman wdev at foltman.com
Thu Aug 3 12:53:54 CDT 2006


This is a trivial fix.

Krzysztof

-------------- next part --------------
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 5b42584..bda8466 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -2302,6 +2302,9 @@ LRESULT WINAPI RichEditANSIWndProc(HWND 
         
     switch (wstr)
     {
+    case 1: /* Ctrl-A */
+      ME_SetSelection(editor, 0, -1);
+      return 0;
     case 3: /* Ctrl-C */
       SendMessageW(editor->hWnd, WM_COPY, 0, 0);
       return 0;
@@ -2314,9 +2317,6 @@ LRESULT WINAPI RichEditANSIWndProc(HWND 
 
     switch (wstr)
     {
-    case 1: /* Ctrl-A */
-      ME_SetSelection(editor, 0, -1);
-      return 0;
     case 22: /* Ctrl-V */
       SendMessageW(editor->hWnd, WM_PASTE, 0, 0);
       return 0;


More information about the wine-patches mailing list