diff options
Diffstat (limited to 'xfa/fwl/core/ifwl_comboedit.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_comboedit.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/xfa/fwl/core/ifwl_comboedit.cpp b/xfa/fwl/core/ifwl_comboedit.cpp index 2a7ac904e1..0896ba76df 100644 --- a/xfa/fwl/core/ifwl_comboedit.cpp +++ b/xfa/fwl/core/ifwl_comboedit.cpp @@ -24,12 +24,8 @@ void IFWL_ComboEdit::ClearSelected() { void IFWL_ComboEdit::SetSelected() { FlagFocus(true); - EndCaret(); - AddSelRange(0); -} - -void IFWL_ComboEdit::EndCaret() { GetTxtEdtEngine()->MoveCaretPos(MC_End); + AddSelRange(0); } void IFWL_ComboEdit::FlagFocus(bool bSet) { @@ -41,10 +37,6 @@ void IFWL_ComboEdit::FlagFocus(bool bSet) { } } -void IFWL_ComboEdit::SetComboBoxFocus(bool bSet) { - m_pOuter->SetFocus(bSet); -} - void IFWL_ComboEdit::OnProcessMessage(CFWL_Message* pMessage) { if (!pMessage) return; @@ -66,7 +58,7 @@ void IFWL_ComboEdit::OnProcessMessage(CFWL_Message* pMessage) { if ((pMsg->m_dwCmd == FWL_MouseCommand::LeftButtonDown) && ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0)) { SetSelected(); - SetComboBoxFocus(true); + m_pOuter->SetFocus(true); } break; } |