SL-15249 FIXED The F1 key does not close the guidebook after clicking a link
parent
713ab594d3
commit
e4dc39cf19
|
|
@ -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 @@ 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*/ };
|
||||
|
|
|
|||
Loading…
Reference in New Issue