Shortcut key “command + shift + 5” has been added from macOS 10.14 Mojave.

Screenshot and screen recording ( commnad + shift + 5 )

If you press the shortcut key “commnad + shift + 5”