CHUI-946 FIXED Return FALSE if key is not handled here.

meow-7.2.2
Mnikolenko ProductEngine 2013-04-19 14:52:37 +03:00
parent 88528cb901
commit 09b70845e5
2 changed files with 12 additions and 2 deletions

View File

@ -1962,23 +1962,28 @@ bool LLFloaterIMContainer::isScrolledOutOfSight(LLConversationViewSession* conve
BOOL LLFloaterIMContainer::handleKeyHere(KEY key, MASK mask )
{
BOOL handled = FALSE;
if(mask == MASK_ALT)
{
if (KEY_RETURN == key )
{
expandConversation();
handled = TRUE;
}
if ((KEY_DOWN == key ) || (KEY_RIGHT == key))
{
selectNextorPreviousConversation(true);
handled = TRUE;
}
if ((KEY_UP == key) || (KEY_LEFT == key))
{
selectNextorPreviousConversation(false);
handled = TRUE;
}
}
return TRUE;
return handled;
}
bool LLFloaterIMContainer::selectAdjacentConversation(bool focus_selected)

View File

@ -1083,21 +1083,26 @@ void LLFloaterIMSessionTab::saveCollapsedState()
}
BOOL LLFloaterIMSessionTab::handleKeyHere(KEY key, MASK mask )
{
BOOL handled = FALSE;
if(mask == MASK_ALT)
{
LLFloaterIMContainer* floater_container = LLFloaterIMContainer::getInstance();
if (KEY_RETURN == key && !isTornOff())
{
floater_container->expandConversation();
handled = TRUE;
}
if ((KEY_UP == key) || (KEY_LEFT == key))
{
floater_container->selectNextorPreviousConversation(false);
handled = TRUE;
}
if ((KEY_DOWN == key ) || (KEY_RIGHT == key))
{
floater_container->selectNextorPreviousConversation(true);
handled = TRUE;
}
}
return TRUE;
return handled;
}