diff options
Diffstat (limited to 'linden/indra/newview/llchatbar.cpp')
-rw-r--r-- | linden/indra/newview/llchatbar.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp index 59aa572..41d2e08 100644 --- a/linden/indra/newview/llchatbar.cpp +++ b/linden/indra/newview/llchatbar.cpp | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -115,6 +116,7 @@ LLChatBar::LLChatBar() | |||
115 | 116 | ||
116 | LLChatBar::~LLChatBar() | 117 | LLChatBar::~LLChatBar() |
117 | { | 118 | { |
119 | gGestureManager.removeObserver(mObserver); | ||
118 | delete mObserver; | 120 | delete mObserver; |
119 | mObserver = NULL; | 121 | mObserver = NULL; |
120 | // LLView destructor cleans up children | 122 | // LLView destructor cleans up children |
@@ -522,7 +524,8 @@ void LLChatBar::onInputEditorKeystroke( LLLineEditor* caller, void* userdata ) | |||
522 | { | 524 | { |
523 | if (self->mInputEditor) | 525 | if (self->mInputEditor) |
524 | { | 526 | { |
525 | self->mInputEditor->setText(utf8_out_str); | 527 | std::string rest_of_match = utf8_out_str.substr(utf8_trigger.size()); |
528 | self->mInputEditor->setText(utf8_trigger + rest_of_match); // keep original capitalization for user-entered part | ||
526 | S32 outlength = self->mInputEditor->getLength(); // in characters | 529 | S32 outlength = self->mInputEditor->getLength(); // in characters |
527 | 530 | ||
528 | // Select to end of line, starting from the character | 531 | // Select to end of line, starting from the character |
@@ -684,10 +687,11 @@ class LLChatHandler : public LLCommandHandler | |||
684 | { | 687 | { |
685 | public: | 688 | public: |
686 | // not allowed from outside the app | 689 | // not allowed from outside the app |
687 | LLChatHandler() : LLCommandHandler("chat", false) { } | 690 | LLChatHandler() : LLCommandHandler("chat", true) { } |
688 | 691 | ||
689 | // Your code here | 692 | // Your code here |
690 | bool handle(const LLSD& tokens, const LLSD& queryMap) | 693 | bool handle(const LLSD& tokens, const LLSD& query_map, |
694 | LLWebBrowserCtrl* web) | ||
691 | { | 695 | { |
692 | if (tokens.size() < 2) return false; | 696 | if (tokens.size() < 2) return false; |
693 | S32 channel = tokens[0].asInteger(); | 697 | S32 channel = tokens[0].asInteger(); |