fix Task EXT-1190 Accordion should support keyboard accessability

--HG--
branch : product-engine
meow-7.2.2
Yuri Chebotarev 2009-12-18 14:36:22 +02:00
parent 78d48def6b
commit 3bf89afebe
1 changed files with 4 additions and 2 deletions

View File

@ -530,7 +530,8 @@ BOOL LLFlatListView::handleKeyHere(KEY key, MASK mask)
if ( !selectNextItemPair(true, reset_selection) && reset_selection)
{
// If case we are in accordion tab notify parent to go to the previous accordion
notifyParent(LLSD().with("action","select_prev"));
if(notifyParent(LLSD().with("action","select_prev")) > 0 )//message was processed
resetSelection();
}
break;
}
@ -539,7 +540,8 @@ BOOL LLFlatListView::handleKeyHere(KEY key, MASK mask)
if ( !selectNextItemPair(false, reset_selection) && reset_selection)
{
// If case we are in accordion tab notify parent to go to the next accordion
notifyParent(LLSD().with("action","select_next"));
if( notifyParent(LLSD().with("action","select_next")) > 0 ) //message was processed
resetSelection();
}
break;
}