Focus the line editor of the username combo box by default
parent
476bc646bf
commit
326b1df5bb
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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; };
|
||||
|
|
|
|||
|
|
@ -402,6 +402,7 @@ void FSPanelLogin::giveFocus()
|
|||
else if (combo)
|
||||
{
|
||||
combo->setFocus(TRUE);
|
||||
combo->focusEditor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue