If an item does not have an expand/collapse latch, let the left arrow jump to its parent (if any). Implements ticket #3725.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30130 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2009-04-12 03:13:08 +00:00
parent 0f37915687
commit fcdaa0c79d
1 changed files with 9 additions and 2 deletions

View File

@ -153,8 +153,15 @@ BOutlineListView::KeyDown(const char* bytes, int32 numBytes)
case B_LEFT_ARROW:
{
BListItem *item = ItemAt(CurrentSelection());
if (item && item->fHasSubitems)
Collapse(item);
if (item) {
if (item->fHasSubitems)
Collapse(item);
else {
item = Superitem(item);
if (item)
Select(IndexOf(item));
}
}
return;
}
}