Capture ^V,^X,^C and translate it to the corresponding message for

paste, cut, copy.
This commit is contained in:
Ulrich Czekalla 2000-05-23 21:16:07 +00:00 committed by Alexandre Julliard
parent 1113706c10
commit c804e3eac4

View file

@ -2951,16 +2951,14 @@ static void EDIT_WM_Char(WND *wnd, EDITSTATE *es, CHAR c, DWORD key_data)
} }
} }
break; break;
case 0x03: /* Ctrl-C */ case 0x03: /* ^C */
EDIT_WM_Copy(wnd, es); SendMessageA(wnd->hwndSelf, WM_COPY, 0, 0);
break; break;
case 0x16: /* Ctrl-V */ case 0x16: /* ^V */
if (!(es->style & ES_READONLY)) SendMessageA(wnd->hwndSelf, WM_PASTE, 0, 0);
EDIT_WM_Paste(wnd, es);
break; break;
case 0x18: /* Ctrl-X */ case 0x18: /* ^X */
if (!(es->style & ES_READONLY)) SendMessageA(wnd->hwndSelf, WM_CUT, 0, 0);
EDIT_WM_Cut(wnd, es);
break; break;
default: default: