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:
@@ -153,8 +153,15 @@ BOutlineListView::KeyDown(const char* bytes, int32 numBytes)
|
|||||||
case B_LEFT_ARROW:
|
case B_LEFT_ARROW:
|
||||||
{
|
{
|
||||||
BListItem *item = ItemAt(CurrentSelection());
|
BListItem *item = ItemAt(CurrentSelection());
|
||||||
if (item && item->fHasSubitems)
|
if (item) {
|
||||||
Collapse(item);
|
if (item->fHasSubitems)
|
||||||
|
Collapse(item);
|
||||||
|
else {
|
||||||
|
item = Superitem(item);
|
||||||
|
if (item)
|
||||||
|
Select(IndexOf(item));
|
||||||
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user