scroll-list column headers now work on single-click. Also improved focus handling for scroll-lists.

This commit is contained in:
Shyotl
2012-03-05 18:30:36 -06:00
parent d54c86e1df
commit 55e589375f
4 changed files with 31 additions and 3 deletions

View File

@@ -2135,6 +2135,8 @@ BOOL LLScrollListCtrl::handleMouseDown(S32 x, S32 y, MASK mask)
mSelectionChanged = FALSE;
handleClick(x, y, mask);
setFocus(TRUE);
}
return TRUE;
@@ -3898,6 +3900,8 @@ void LLColumnHeader::onClick(void* user_data)
// propagate new sort order to sort order list
headerp->mList->selectNthItem(column->mParentCtrl->getSortAscending() ? 0 : 1);
headerp->mList->setFocus(TRUE);
}
//static