Commit 322cd5de authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Allow copying selection when control is read only.

parent 78c8ab96
...@@ -3602,10 +3602,6 @@ static void EDIT_WM_Char(EDITSTATE *es, WCHAR c) ...@@ -3602,10 +3602,6 @@ static void EDIT_WM_Char(EDITSTATE *es, WCHAR c)
{ {
BOOL control; BOOL control;
/* Protect read-only edit control from modification */
if(es->style & ES_READONLY)
return;
control = GetKeyState(VK_CONTROL) & 0x8000; control = GetKeyState(VK_CONTROL) & 0x8000;
switch (c) { switch (c) {
...@@ -3647,10 +3643,12 @@ static void EDIT_WM_Char(EDITSTATE *es, WCHAR c) ...@@ -3647,10 +3643,12 @@ static void EDIT_WM_Char(EDITSTATE *es, WCHAR c)
SendMessageW(es->hwndSelf, WM_COPY, 0, 0); SendMessageW(es->hwndSelf, WM_COPY, 0, 0);
break; break;
case 0x16: /* ^V */ case 0x16: /* ^V */
SendMessageW(es->hwndSelf, WM_PASTE, 0, 0); if (!(es->style & ES_READONLY))
SendMessageW(es->hwndSelf, WM_PASTE, 0, 0);
break; break;
case 0x18: /* ^X */ case 0x18: /* ^X */
SendMessageW(es->hwndSelf, WM_CUT, 0, 0); if (!(es->style & ES_READONLY))
SendMessageW(es->hwndSelf, WM_CUT, 0, 0);
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment