Enable Multiselect in groups, and enable EditMenuHandler when a scrollable list is focused!

Allows Ctrl-A to select all in a list (Like for selecting all groups and unticking chat with a single click)
Ctrl-E to deselect
Ctrl-X/Ctrl-C to copy a list (useful for saving ban lists and such!)
This commit is contained in:
Inusaito Sayori
2014-05-23 19:37:32 -04:00
parent 828941a204
commit bbe7f6adfb
4 changed files with 13 additions and 10 deletions

View File

@@ -3214,6 +3214,11 @@ void LLScrollListCtrl::setFocus(BOOL b)
selectFirstItem();
//onCommit(); // SJB: selectFirstItem() will call onCommit() if appropriate
}
// Singu Note: Edit menu handler, y'know for Ctrl-A and such!
if (b) gEditMenuHandler = this;
else if (gEditMenuHandler == this) gEditMenuHandler = NULL;
LLUICtrl::setFocus(b);
}