Skip to content
Snippets Groups Projects
Commit e4dc39cf authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

SL-15249 FIXED The F1 key does not close the guidebook after clicking a link

parent 713ab594
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......@@ -44,6 +44,8 @@ class LLFloaterHowTo :
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*/ };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment