Return key should not be ignored in multiline edit even if

ES_WANTRETURN flag isn't set.
This commit is contained in:
Stephane Lussier 1999-09-27 11:45:07 +00:00 committed by Alexandre Julliard
parent ec09a400a7
commit 5ca2ec4288
1 changed files with 2 additions and 2 deletions

View File

@ -2896,8 +2896,8 @@ static void EDIT_WM_Char(WND *wnd, EDITSTATE *es, CHAR c, DWORD key_data)
BOOL control = GetKeyState(VK_CONTROL) & 0x8000;
switch (c) {
case '\r':
/* If the edit doesn't want the return, do nothing */
if(!(es->style & ES_WANTRETURN))
/* If the edit doesn't want the return and it's not a multiline edit, do nothing */
if(!(es->style & ES_MULTILINE) && !(es->style & ES_WANTRETURN))
break;
case '\n':
if (es->style & ES_MULTILINE) {