From 1ddfb4c5dd436fc1a9a867d0a2b9980483a3d3fd Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Thu, 4 Mar 2010 13:16:28 -0700 Subject: Applied Kitty Barnett's patch for Search/Replace in notecards. --- linden/indra/newview/llpreviewnotecard.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'linden/indra/newview/llpreviewnotecard.cpp') diff --git a/linden/indra/newview/llpreviewnotecard.cpp b/linden/indra/newview/llpreviewnotecard.cpp index 976023f..04f8004 100644 --- a/linden/indra/newview/llpreviewnotecard.cpp +++ b/linden/indra/newview/llpreviewnotecard.cpp @@ -40,6 +40,7 @@ #include "llassetuploadresponders.h" #include "llviewerwindow.h" #include "llbutton.h" +#include "llfloatersearchreplace.h" #include "llinventorymodel.h" #include "lllineeditor.h" #include "llnotify.h" @@ -213,6 +214,12 @@ BOOL LLPreviewNotecard::handleKeyHere(KEY key, MASK mask) return TRUE; } + if(('F' == key) && (MASK_CONTROL == (mask & MASK_CONTROL))) + { + LLFloaterSearchReplace::show(getChild("Notecard Editor")); + return TRUE; + } + return LLPreview::handleKeyHere(key, mask); } @@ -647,4 +654,9 @@ void LLPreviewNotecard::reshape(S32 width, S32 height, BOOL called_from_parent) } } +LLTextEditor* LLPreviewNotecard::getEditor() +{ + return getChild("Notecard Editor"); +} + // EOF -- cgit v1.1