aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/guilib/GUIEditControl.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/xbmc/guilib/GUIEditControl.cpp b/xbmc/guilib/GUIEditControl.cpp
index 7cfda87d8f..d86a1cbec1 100644
--- a/xbmc/guilib/GUIEditControl.cpp
+++ b/xbmc/guilib/GUIEditControl.cpp
@@ -487,14 +487,16 @@ void CGUIEditControl::ProcessText(unsigned int currentTime)
std::wstring text = GetDisplayedText();
- if (!HasFocus() && text.empty())
+ if ((HasFocus() || GetParentID() == WINDOW_DIALOG_KEYBOARD) && m_inputType != INPUT_TYPE_READONLY)
+ {
+ changed |= SetStyledText(text);
+ }
+ else if (!HasFocus() && text.empty())
{
std::string hint = m_hintInfo.GetLabel(GetParentID());
if (!hint.empty())
changed |= m_label2.SetText(hint);
}
- else if ((HasFocus() || GetParentID() == WINDOW_DIALOG_KEYBOARD) && m_inputType != INPUT_TYPE_READONLY)
- changed |= SetStyledText(text);
else
changed |= m_label2.SetTextW(text);