summaryrefslogtreecommitdiff
path: root/indra/llui/llsearcheditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llsearcheditor.h')
-rw-r--r--indra/llui/llsearcheditor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/llsearcheditor.h b/indra/llui/llsearcheditor.h
index 368b68baa3..cd2867b493 100644
--- a/indra/llui/llsearcheditor.h
+++ b/indra/llui/llsearcheditor.h
@@ -67,6 +67,8 @@ public:
virtual ~LLSearchEditor() {}
void setText(const LLStringExplicit &new_text) { mSearchEditor->setText(new_text); }
+ const std::string& getText() const { return mSearchEditor->getText(); }
+
// LLUICtrl interface
virtual void setValue(const LLSD& value );
@@ -75,6 +77,12 @@ public:
virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text );
virtual void clear();
+ void setKeystrokeCallback(LLLineEditor::callback_t callback, void* user_data)
+ {
+ if(mSearchEditor)
+ mSearchEditor->setKeystrokeCallback(callback,user_data);
+ }
+
private:
LLLineEditor* mSearchEditor;
LLButton* mSearchButton;