Transfer selected objects to a collection doesn't work The M button does not work and does not allow me to transfer the selected objects to the collection



If several objects are selected via lasso or box and not one object at a time using the Shift key, the M button does not work and does not allow transferring the selected objects to the collection or create a collection.

Dragging and dropping from one collection to another works well on any tests with new files, but with my level of some problems. Maybe some objects have invalid connections or properties.
You can't transfer because there is no active object.

Pasting objects also lasso/border selecting doesn't set any object as active, and most operators in Blender use active object as reference for settings, since there isn't one some operations may fail.

Solve this by Shift-clicking any of the selected objects so it is set as active without deselecting others.