diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-04-17 11:52:29 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-04-17 11:52:29 +0300 |
commit | 2b9be2ac8c046fac069b20cf110b14ceb5f43d89 (patch) | |
tree | 6b57be857204e2d29f00451c4e5a2c1f82055c4a /indra/llui/llsearcheditor.cpp | |
parent | dd4f3c90797339fff98d92edeb5d7815fe8e32ed (diff) |
MAINT-4784 FIXED Don't clear destination beacon, when text is unchanged in input boxes.
Diffstat (limited to 'indra/llui/llsearcheditor.cpp')
-rwxr-xr-x | indra/llui/llsearcheditor.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llui/llsearcheditor.cpp b/indra/llui/llsearcheditor.cpp index ea96fc573d..1fdd05a11c 100755 --- a/indra/llui/llsearcheditor.cpp +++ b/indra/llui/llsearcheditor.cpp @@ -29,6 +29,7 @@ #include "linden_common.h" #include "llsearcheditor.h" +#include "llkeyboard.h" LLSearchEditor::LLSearchEditor(const LLSearchEditor::Params& p) : LLUICtrl(p), @@ -166,4 +167,16 @@ void LLSearchEditor::handleKeystroke() { mKeystrokeCallback(this, getValue()); } + + KEY key = gKeyboard->currentKey(); + if (key == KEY_LEFT || + key == KEY_RIGHT) + { + return; + } + + if (mTextChangedCallback) + { + mTextChangedCallback(this, getValue()); + } } |