parent
1fc9186aaf
commit
a611ef3d50
|
@ -484,10 +484,12 @@ bool CEdit::EventProcess(const Event &event)
|
||||||
if ( event.customParam == m_eventType )
|
if ( event.customParam == m_eventType )
|
||||||
{
|
{
|
||||||
m_bFocus = true;
|
m_bFocus = true;
|
||||||
|
UpdateFocus();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_bFocus = false;
|
m_bFocus = false;
|
||||||
|
UpdateFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -504,10 +506,12 @@ bool CEdit::EventProcess(const Event &event)
|
||||||
if ( m_bEdit || m_bHilite ) m_bCapture = true;
|
if ( m_bEdit || m_bHilite ) m_bCapture = true;
|
||||||
}
|
}
|
||||||
m_bFocus = true;
|
m_bFocus = true;
|
||||||
|
UpdateFocus();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_bFocus = false;
|
m_bFocus = false;
|
||||||
|
UpdateFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3229,9 +3233,13 @@ void CEdit::SetFocus(CControl* control)
|
||||||
|
|
||||||
if (oldFocus != m_bFocus)
|
if (oldFocus != m_bFocus)
|
||||||
{
|
{
|
||||||
// Start/stop text input mode, this toggles the on-screen keyboard
|
UpdateFocus();
|
||||||
CApplication::GetInstancePointer()->SetTextInput(m_bFocus);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CEdit::UpdateFocus()
|
||||||
|
{
|
||||||
|
CApplication::GetInstancePointer()->SetTextInput(m_bFocus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -228,6 +228,7 @@ protected:
|
||||||
void UpdateScroll();
|
void UpdateScroll();
|
||||||
|
|
||||||
void SetFocus(CControl* control) override;
|
void SetFocus(CControl* control) override;
|
||||||
|
void UpdateFocus(); // Start/stop text input mode, this toggles the on-screen keyboard
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::unique_ptr<CScroll> m_scroll; // vertical scrollbar on the right
|
std::unique_ptr<CScroll> m_scroll; // vertical scrollbar on the right
|
||||||
|
|
Loading…
Reference in New Issue