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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user