summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewerinput.cpp')
-rw-r--r--indra/newview/llviewerinput.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llviewerinput.cpp b/indra/newview/llviewerinput.cpp
index ea3088613f..ffcbd1b4d8 100644
--- a/indra/newview/llviewerinput.cpp
+++ b/indra/newview/llviewerinput.cpp
@@ -48,6 +48,9 @@
#include "llinitparam.h"
#include "llselectmgr.h"
+#include "llfloaterwebcontent.h"
+#include "fsfloatersearch.h"
+
//
// Constants
//
@@ -648,6 +651,12 @@ bool start_chat( EKeystate s )
bool start_gesture( EKeystate s )
{
+ LLFloater* focused_floater = gFloaterView->getFocusedFloater();
+ if (focused_floater && (dynamic_cast<LLFloaterWebContent*>(focused_floater) || dynamic_cast<FSFloaterSearch*>(focused_floater)))
+ {
+ return true;
+ }
+
LLUICtrl* focus_ctrlp = dynamic_cast<LLUICtrl*>(gFocusMgr.getKeyboardFocus());
if (KEYSTATE_UP == s &&
! (focus_ctrlp && focus_ctrlp->acceptsTextInput()))