aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llchatbar.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llchatbar.cpp
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llchatbar.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp
index 84ebf98..2395f3c 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,
@@ -114,6 +115,7 @@ LLChatBar::LLChatBar()
114 115
115LLChatBar::~LLChatBar() 116LLChatBar::~LLChatBar()
116{ 117{
118 gGestureManager.removeObserver(mObserver);
117 delete mObserver; 119 delete mObserver;
118 mObserver = NULL; 120 mObserver = NULL;
119 // LLView destructor cleans up children 121 // LLView destructor cleans up children
@@ -521,7 +523,8 @@ void LLChatBar::onInputEditorKeystroke( LLLineEditor* caller, void* userdata )
521 { 523 {
522 if (self->mInputEditor) 524 if (self->mInputEditor)
523 { 525 {
524 self->mInputEditor->setText(utf8_out_str); 526 std::string rest_of_match = utf8_out_str.substr(utf8_trigger.size());
527 self->mInputEditor->setText(utf8_trigger + rest_of_match); // keep original capitalization for user-entered part
525 S32 outlength = self->mInputEditor->getLength(); // in characters 528 S32 outlength = self->mInputEditor->getLength(); // in characters
526 529
527 // Select to end of line, starting from the character 530 // Select to end of line, starting from the character
@@ -683,10 +686,11 @@ class LLChatHandler : public LLCommandHandler
683{ 686{
684public: 687public:
685 // not allowed from outside the app 688 // not allowed from outside the app
686 LLChatHandler() : LLCommandHandler("chat", false) { } 689 LLChatHandler() : LLCommandHandler("chat", true) { }
687 690
688 // Your code here 691 // Your code here
689 bool handle(const LLSD& tokens, const LLSD& queryMap) 692 bool handle(const LLSD& tokens, const LLSD& query_map,
693 LLWebBrowserCtrl* web)
690 { 694 {
691 if (tokens.size() < 2) return false; 695 if (tokens.size() < 2) return false;
692 S32 channel = tokens[0].asInteger(); 696 S32 channel = tokens[0].asInteger();