CHUI-946 FIXED Return FALSE if key is not handled here.
parent
88528cb901
commit
09b70845e5
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue