From f9666864254bf84ef878630bbdaaaabbecab8ba5 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 26 Apr 2018 18:28:07 +0000 Subject: Enter key inserts a line break correctly in XFA edits. Bug: chromium:836361 Change-Id: I6d86ccec813f934ed2d0ab124501527d39ce535f Reviewed-on: https://pdfium-review.googlesource.com/31390 Reviewed-by: dsinclair Commit-Queue: dsinclair --- xfa/fgas/layout/cfx_txtbreak.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'xfa/fgas/layout') diff --git a/xfa/fgas/layout/cfx_txtbreak.cpp b/xfa/fgas/layout/cfx_txtbreak.cpp index ccbc6a817a..3a2929d226 100644 --- a/xfa/fgas/layout/cfx_txtbreak.cpp +++ b/xfa/fgas/layout/cfx_txtbreak.cpp @@ -227,6 +227,7 @@ CFX_BreakType CFX_TxtBreak::AppendChar(wchar_t wch) { // don't get matched as control characters so we go into AppendChar_other // and never detect the new paragraph ... dwRet2 = CFX_BreakType::Paragraph; + EndBreak(dwRet2); } else { switch (chartype) { case FX_CHARTYPE_Tab: -- cgit v1.2.3