Prevent MacBook screen from turning off when closed?


Anyone know a way to prevent the Mac screen from shutting off when closed? I would love to use Astropad Studio with cover closed, but closing it causes Astropad to disconnect.

By th way, Loving Studio. Huge step forward for an already great app!