summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2021-05-11 13:25:57 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2021-05-11 13:25:57 +0300
commite4dc39cf19a00ab148de6d1bd6c4cd229cf545f5 (patch)
tree713c02d6714674b1223ec284c6d9597603526253 /indra
parent713ab594d376c87e891647d8e2be013e4b9f92d8 (diff)
SL-15249 FIXED The F1 key does not close the guidebook after clicking a link
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloaterhowto.cpp13
-rw-r--r--indra/newview/llfloaterhowto.h2
2 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llfloaterhowto.cpp b/indra/newview/llfloaterhowto.cpp
index 6e913b08ea..2bd2c47dd7 100644
--- a/indra/newview/llfloaterhowto.cpp
+++ b/indra/newview/llfloaterhowto.cpp
@@ -83,3 +83,16 @@ LLFloaterHowTo* LLFloaterHowTo::getInstance()
{
return LLFloaterReg::getTypedInstance<LLFloaterHowTo>("how_to");
}
+
+BOOL LLFloaterHowTo::handleKeyHere(KEY key, MASK mask)
+{
+ BOOL handled = FALSE;
+
+ if (KEY_F1 == key )
+ {
+ closeFloater();
+ handled = TRUE;
+ }
+
+ return handled;
+}
diff --git a/indra/newview/llfloaterhowto.h b/indra/newview/llfloaterhowto.h
index fa1d9cace0..c2703d815b 100644
--- a/indra/newview/llfloaterhowto.h
+++ b/indra/newview/llfloaterhowto.h
@@ -44,6 +44,8 @@ public:
void onOpen(const LLSD& key) override;
+ virtual BOOL handleKeyHere(KEY key, MASK mask);
+
static LLFloaterHowTo* getInstance();
bool matchesKey(const LLSD& key) override { return true; /*single instance*/ };