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:
parent
0f37915687
commit
fcdaa0c79d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue