diff options
| author | dmitry <none@none> | 2013-08-05 15:09:01 +0300 | 
|---|---|---|
| committer | dmitry <none@none> | 2013-08-05 15:09:01 +0300 | 
| commit | 106f161a6e33cef2ef1651dff829aca0193e04ee (patch) | |
| tree | 22626c6484cbb5178db690afb0099615fd451ef4 /indra | |
| parent | 48f702029f498b83c6a9ade54c3814def0df4bc8 (diff) | |
MAINT-822 FIXED [PUBLIC]Inventory window should focus on search field
Diffstat (limited to 'indra')
| -rwxr-xr-x | indra/newview/llpanelmaininventory.cpp | 7 | ||||
| -rwxr-xr-x | indra/newview/llpanelmaininventory.h | 3 | ||||
| -rwxr-xr-x | indra/newview/llsidepanelinventory.cpp | 2 | 
3 files changed, 11 insertions, 1 deletions
| diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index d6535c88e9..c38a78365a 100755 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -540,6 +540,13 @@ void LLPanelMainInventory::changed(U32)  	updateItemcountText();  } +void LLPanelMainInventory::setFocusFilterEditor() +{ +	if(mFilterEditor) +	{ +		mFilterEditor->setFocus(true); +	} +}  // virtual  void LLPanelMainInventory::draw() diff --git a/indra/newview/llpanelmaininventory.h b/indra/newview/llpanelmaininventory.h index 899931aa89..4fd93b24a4 100755 --- a/indra/newview/llpanelmaininventory.h +++ b/indra/newview/llpanelmaininventory.h @@ -82,6 +82,9 @@ public:  	void setSelectCallback(const LLFolderView::signal_t::slot_type& cb);  	void onFilterEdit(const std::string& search_string ); + +	void setFocusFilterEditor(); +  protected:  	//  	// Misc functions diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp index 8915bb2fef..cbf43dbb93 100755 --- a/indra/newview/llsidepanelinventory.cpp +++ b/indra/newview/llsidepanelinventory.cpp @@ -397,7 +397,7 @@ void LLSidepanelInventory::onToggleInboxBtn()  void LLSidepanelInventory::onOpen(const LLSD& key)  {  	LLFirstUse::newInventory(false); - +	mPanelMainInventory->setFocusFilterEditor();  #if AUTO_EXPAND_INBOX  	// Expand the inbox if we have fresh items  	LLPanelMarketplaceInbox * inbox = findChild<LLPanelMarketplaceInbox>(MARKETPLACE_INBOX_PANEL); | 
