is there a way to suspend computer while screen is locked?

I have set up Power Settings to put computer to sleep when Power Button pressed. But when screen is locked the button is ignored.
Can I override this behaviour? Is it possible to force sleep when screen is locked

Power button worked fine for me in 13.1, but now in 13.2 stopped