Commit 5ca2ec42 authored by Stephane Lussier's avatar Stephane Lussier Committed by Alexandre Julliard

Return key should not be ignored in multiline edit even if

ES_WANTRETURN flag isn't set.
parent ec09a400
......@@ -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) {
......
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