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)
{
BOOL control;
/* Protect read-only edit control from modification */
if(es->style & ES_READONLY)
return;
control = GetKeyState(VK_CONTROL) & 0x8000;
switch (c) {
......@@ -3647,9 +3643,11 @@ static void EDIT_WM_Char(EDITSTATE *es, WCHAR c)
SendMessageW(es->hwndSelf, WM_COPY, 0, 0);
break;
case 0x16: /* ^V */
if (!(es->style & ES_READONLY))
SendMessageW(es->hwndSelf, WM_PASTE, 0, 0);
break;
case 0x18: /* ^X */
if (!(es->style & ES_READONLY))
SendMessageW(es->hwndSelf, WM_CUT, 0, 0);
break;
......
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