Focus the line editor of the username combo box by default

meow-7.2.2
Ansariel 2015-07-30 13:00:04 +02:00
parent 476bc646bf
commit 326b1df5bb
3 changed files with 14 additions and 0 deletions

View File

@ -537,6 +537,16 @@ void LLComboBox::createLineEditor(const LLComboBox::Params& p)
}
}
// <FS:Ansariel> For setting the focus to the LLLineEditor
void LLComboBox::focusEditor()
{
if (mTextEntry)
{
mTextEntry->setFocus(TRUE);
}
}
// </FS:Ansariel>
void LLComboBox::setLeftTextPadding(S32 pad)
{
S32 left_pad, right_pad;

View File

@ -160,6 +160,9 @@ public:
void createLineEditor(const Params&);
// <FS:Ansariel> For setting the focus to the LLLineEditor
void focusEditor();
//========================================================================
LLCtrlSelectionInterface* getSelectionInterface() { return (LLCtrlSelectionInterface*)this; };
LLCtrlListInterface* getListInterface() { return (LLCtrlListInterface*)this; };

View File

@ -402,6 +402,7 @@ void FSPanelLogin::giveFocus()
else if (combo)
{
combo->setFocus(TRUE);
combo->focusEditor();
}
}
}