Kaydet (Commit) 5d19f429 authored tarafından Rafael Dominguez's avatar Rafael Dominguez

Down-arrow jump to last item when there is no item immediately below.

Change-Id: I23f5f002826e2ecc25ff19d18372cb637feb1310
üst 53f7f398
...@@ -564,10 +564,23 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) ...@@ -564,10 +564,23 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt )
break; break;
case KEY_DOWN: case KEY_DOWN:
{ {
if ( bFoundLast && nLastPos < mFilteredItemList.size( ) - mnCols ) if ( bFoundLast )
{ {
bValidRange = true; //If we are in the second last row just go the one in
nNextPos = nLastPos + mnCols; //the row below, if theres not row below just go to the
//last item but for the last row dont do anything.
if ( nLastPos < mFilteredItemList.size( ) - mnCols )
{
bValidRange = true;
nNextPos = nLastPos + mnCols;
}
else
{
int curRow = nLastPos/mnCols;
if (curRow < mnLines-1)
nNextPos = mFilteredItemList.size()-1;
}
} }
pNext = mFilteredItemList[nNextPos]; pNext = mFilteredItemList[nNextPos];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment