| Index: fpdfsdk/formfiller/cffl_textfield.cpp
|
| diff --git a/fpdfsdk/formfiller/cffl_textfield.cpp b/fpdfsdk/formfiller/cffl_textfield.cpp
|
| index 5e690313be38f10116d505817bd8e0e6e44c15df..d24452fd45772f9b7baf015590775304636656f6 100644
|
| --- a/fpdfsdk/formfiller/cffl_textfield.cpp
|
| +++ b/fpdfsdk/formfiller/cffl_textfield.cpp
|
| @@ -106,7 +106,7 @@ FX_BOOL CFFL_TextField::OnChar(CPDFSDK_Annot* pAnnot,
|
| switch (nChar) {
|
| case FWL_VKEY_Return:
|
| if (!(m_pWidget->GetFieldFlags() & FIELDFLAG_MULTILINE)) {
|
| - CPDFSDK_PageView* pPageView = GetCurPageView();
|
| + CPDFSDK_PageView* pPageView = GetCurPageView(true);
|
| ASSERT(pPageView);
|
| m_bValid = !m_bValid;
|
| CFX_FloatRect rcAnnot = pAnnot->GetRect();
|
| @@ -126,7 +126,7 @@ FX_BOOL CFFL_TextField::OnChar(CPDFSDK_Annot* pAnnot,
|
| }
|
| break;
|
| case FWL_VKEY_Escape: {
|
| - CPDFSDK_PageView* pPageView = GetCurPageView();
|
| + CPDFSDK_PageView* pPageView = GetCurPageView(true);
|
| ASSERT(pPageView);
|
| EscapeFiller(pPageView, TRUE);
|
| return TRUE;
|
|
|