Fix keyboard shortcuts like ctrl+w for floaters

This commit is contained in:
Siana Gearz
2012-01-12 01:37:13 +01:00
parent a6f36abab0
commit 4eea8624b7
5 changed files with 18 additions and 21 deletions

View File

@@ -406,22 +406,6 @@ void LLMultiFloater::setVisible(BOOL visible)
}
}
BOOL LLMultiFloater::handleKeyHere(KEY key, MASK mask)
{
if (key == 'W' && mask == MASK_CONTROL)
{
LLFloater* floater = getActiveFloater();
// is user closeable and is system closeable
if (floater && floater->canClose() && floater->isCloseable())
{
floater->close();
}
return TRUE;
}
return LLFloater::handleKeyHere(key, mask);
}
LLFloater* LLMultiFloater::getActiveFloater()
{
return (LLFloater*)mTabContainer->getCurrentPanel();