Consolidate Midi Clip

Key command to glue together a midi clip and erase all the information outside of it. Or “Join”. I know you can create a macro to invert and delete but isn’t this super complicated for a function that is included in every other DAW?