Handle ^C, ^V and ^X in an edit control properly.
This commit is contained in:
parent
e5565ff049
commit
86d0b031bb
|
@ -2948,6 +2948,18 @@ static void EDIT_WM_Char(WND *wnd, EDITSTATE *es, CHAR c, DWORD key_data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 0x03: /* Ctrl-C */
|
||||||
|
EDIT_WM_Copy(wnd, es);
|
||||||
|
break;
|
||||||
|
case 0x16: /* Ctrl-V */
|
||||||
|
if (!(es->style & ES_READONLY))
|
||||||
|
EDIT_WM_Paste(wnd, es);
|
||||||
|
break;
|
||||||
|
case 0x18: /* Ctrl-X */
|
||||||
|
if (!(es->style & ES_READONLY))
|
||||||
|
EDIT_WM_Cut(wnd, es);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (!(es->style & ES_READONLY) && ((BYTE)c >= ' ') && (c != 127)) {
|
if (!(es->style & ES_READONLY) && ((BYTE)c >= ' ') && (c != 127)) {
|
||||||
char str[2];
|
char str[2];
|
||||||
|
|
Loading…
Reference in New Issue