make autoreplace, aka autocorrect, work in chat again

Tank_Master 2012-09-17 00:56:43 -07:00
parent 4a7a8a5e9f
commit ee7c476bf3
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,4 @@
/*
#include "llautoreplace.h"
mChatBox->setAutoreplaceCallback(boost::bind(&LLAutoReplace::autoreplaceCallback, LLAutoReplace::getInstance(), _1, _2));
This file is not used by Firestorm. It's being kept in place to track merges.

View File

@ -75,6 +75,7 @@
#include "llkeyboard.h"
#include "llgesturemgr.h"
#include "llmultigesture.h"
#include "llautoreplace.h"
// #include "llconsole.h"
// #include "fscontactsfloater.h"
@ -100,6 +101,7 @@ static LLChatTypeTrigger sChatTypeTriggers[] = {
LLNearbyChatControl::LLNearbyChatControl(const LLNearbyChatControl::Params& p) :
LLLineEditor(p)
{
setAutoreplaceCallback(boost::bind(&LLAutoReplace::autoreplaceCallback, LLAutoReplace::getInstance(), _1, _2));
setKeystrokeCallback(onKeystroke,this);
LLNearbyChat::instance().registerChatBar(this);