diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llui/llsearcheditor.cpp | 9 | ||||
| -rw-r--r-- | indra/llui/llsearcheditor.h | 1 | ||||
| -rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 1 | 
3 files changed, 11 insertions, 0 deletions
| diff --git a/indra/llui/llsearcheditor.cpp b/indra/llui/llsearcheditor.cpp index fad2b7bc99..6fa99df82e 100644 --- a/indra/llui/llsearcheditor.cpp +++ b/indra/llui/llsearcheditor.cpp @@ -141,6 +141,15 @@ void LLSearchEditor::clear()  	}  } +//virtual +void LLSearchEditor::setFocus( BOOL b ) +{ +	if (mSearchEditor) +	{ +		mSearchEditor->setFocus(b); +	} +} +  void LLSearchEditor::onClearButtonClick(const LLSD& data)  {  	setText(LLStringUtil::null); diff --git a/indra/llui/llsearcheditor.h b/indra/llui/llsearcheditor.h index f395e7e816..bd2d595174 100644 --- a/indra/llui/llsearcheditor.h +++ b/indra/llui/llsearcheditor.h @@ -83,6 +83,7 @@ public:  	virtual BOOL	setLabelArg( const std::string& key, const LLStringExplicit& text );  	virtual void	setLabel( const LLStringExplicit &new_label );  	virtual void	clear(); +	virtual void	setFocus( BOOL b );  	void			setKeystrokeCallback( commit_callback_t cb ) { mKeystrokeCallback = cb; } diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 1f7e0c3a95..2a56a6011e 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -978,6 +978,7 @@ void LLPanelMainInventory::onCustomAction(const LLSD& userdata)  		LLInventoryFilter *filter = mActivePanel->getFilter();  		filter->setFilterSubString(item_name);  		mFilterEditor->setText(item_name); +		mFilterEditor->setFocus(TRUE);  		filter->setFilterUUID(item_id);  		filter->setShowFolderState(LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS);  	} | 
