summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
index 726218989a..7b90579a5f 100644
--- a/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
@@ -169,7 +169,7 @@ bool CPWL_EditCtrl::OnKeyDown(uint16_t nChar, uint32_t nFlag) {
return true;
case FWL_VKEY_Unknown:
if (!IsSHIFTpressed(nFlag))
- Clear();
+ ClearSelection();
else
CutText();
return true;
@@ -233,7 +233,7 @@ bool CPWL_EditCtrl::OnChar(uint16_t nChar, uint32_t nFlag) {
if (m_pEdit->IsSelected() && word == FWL_VKEY_Back)
word = FWL_VKEY_Unknown;
- Clear();
+ ClearSelection();
switch (word) {
case FWL_VKEY_Back:
@@ -342,9 +342,9 @@ void CPWL_EditCtrl::GetSelection(int32_t& nStartChar, int32_t& nEndChar) const {
m_pEdit->GetSelection(nStartChar, nEndChar);
}
-void CPWL_EditCtrl::Clear() {
+void CPWL_EditCtrl::ClearSelection() {
if (!IsReadOnly())
- m_pEdit->Clear();
+ m_pEdit->ClearSelection();
}
void CPWL_EditCtrl::SelectAll() {