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