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

This commit is contained in:
Krzysztof Foltman 2006-08-03 19:53:54 +02:00 committed by Alexandre Julliard
parent 0fbb175d64
commit 5f32291ace
1 changed files with 3 additions and 3 deletions

View File

@ -2302,6 +2302,9 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
switch (wstr) switch (wstr)
{ {
case 1: /* Ctrl-A */
ME_SetSelection(editor, 0, -1);
return 0;
case 3: /* Ctrl-C */ case 3: /* Ctrl-C */
SendMessageW(editor->hWnd, WM_COPY, 0, 0); SendMessageW(editor->hWnd, WM_COPY, 0, 0);
return 0; return 0;
@ -2314,9 +2317,6 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
switch (wstr) switch (wstr)
{ {
case 1: /* Ctrl-A */
ME_SetSelection(editor, 0, -1);
return 0;
case 22: /* Ctrl-V */ case 22: /* Ctrl-V */
SendMessageW(editor->hWnd, WM_PASTE, 0, 0); SendMessageW(editor->hWnd, WM_PASTE, 0, 0);
return 0; return 0;