From c804e3eac4f3f0ab6e3f36ed89af9bb8d43731bd Mon Sep 17 00:00:00 2001 From: Ulrich Czekalla Date: Tue, 23 May 2000 21:16:07 +0000 Subject: [PATCH] Capture ^V,^X,^C and translate it to the corresponding message for paste, cut, copy. --- controls/edit.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/controls/edit.c b/controls/edit.c index c23641ddec7..8f15e41f25d 100644 --- a/controls/edit.c +++ b/controls/edit.c @@ -2951,16 +2951,14 @@ static void EDIT_WM_Char(WND *wnd, EDITSTATE *es, CHAR c, DWORD key_data) } } break; - case 0x03: /* Ctrl-C */ - EDIT_WM_Copy(wnd, es); + case 0x03: /* ^C */ + SendMessageA(wnd->hwndSelf, WM_COPY, 0, 0); break; - case 0x16: /* Ctrl-V */ - if (!(es->style & ES_READONLY)) - EDIT_WM_Paste(wnd, es); + case 0x16: /* ^V */ + SendMessageA(wnd->hwndSelf, WM_PASTE, 0, 0); break; - case 0x18: /* Ctrl-X */ - if (!(es->style & ES_READONLY)) - EDIT_WM_Cut(wnd, es); + case 0x18: /* ^X */ + SendMessageA(wnd->hwndSelf, WM_CUT, 0, 0); break; default: