Etymology
Today it means: In a correct manner. Full definition →
From correct + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.