Etymology
Today it means: Unsuitably; improperly. Full definition →
From undecent + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.