From cccdd1fb397240fda99663b403e00b2582c202ba Mon Sep 17 00:00:00 2001 From: Mnikolenko ProductEngine Date: Fri, 30 Jan 2015 15:36:00 +0200 Subject: MAINT-4853 FIXED Pressing the ENTER key when entering a location into the Type a location field, doesn't log you in --- indra/llui/llcombobox.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/llui/llcombobox.h') diff --git a/indra/llui/llcombobox.h b/indra/llui/llcombobox.h index 67393504e7..c9b1212b70 100755 --- a/indra/llui/llcombobox.h +++ b/indra/llui/llcombobox.h @@ -199,6 +199,11 @@ public: void setTextEntryCallback( commit_callback_t cb ) { mTextEntryCallback = cb; } void setTextChangedCallback( commit_callback_t cb ) { mTextChangedCallback = cb; } + /** + * Connects callback to signal called when Return key is pressed. + */ + boost::signals2::connection setReturnCallback( const commit_signal_t::slot_type& cb ) { return mOnReturnSignal.connect(cb); } + void setButtonVisible(BOOL visible); void onButtonMouseDown(); @@ -231,6 +236,7 @@ private: commit_callback_t mTextChangedCallback; commit_callback_t mSelectionCallback; boost::signals2::connection mTopLostSignalConnection; + commit_signal_t mOnReturnSignal; S32 mLastSelectedIndex; }; -- cgit v1.2.3