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

meow-7.2.2
Mnikolenko Productengine 2021-05-11 13:25:57 +03:00
parent 713ab594d3
commit e4dc39cf19
2 changed files with 15 additions and 0 deletions

View File

@ -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;
}

View File

@ -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*/ };