[Suggestion] Have the physical power button commence a shut down when displaying the "Ask" screen (log out/restart/shut down/suspend)

When the "Ask" screen is up with log out, restart, shut down, suspend, etc, pressing the physical power button does nothing.

It would be really great if commenced a shut down, that those of us with the power button action set to "ask" can still be able to easily shut down a PC without having to turn on the screen (particularly useful for livingroom PC setups).

So as to avoid accidental double-press stutters, it'd probably be best to include a 500ms dead-time or something, i.e. press power button once to bring up the "Ask" screen, then you have to wait 500ms before pressing the power button again commences the shut down process (important if you pressed the power button once to bring up the "Ask" screen but wanted to select something other than shut down, i.e. suspend)

This would also solve the (intentional?) issue in some distros, when waking up a PC from suspend, pressing the power button too soon after waking up (like within a second or two) will cause the "Ask" screen to show up even if your have the power button action set to "Shut down immediately"...and obviously with the current behavior, no amount of pressing the power button again will commence a shot down when the "Ask" screen is up (I've run into this multiple times on my Linux Mint Xfce installation for example since my PC is located in a different room than my monitor, mouse, and keyboard, i.e. I'll press the power button to wake it up just to press it again to commence a shut down, but I didn't wait long enough so it instead brought up the "Ask" screen and so then I have to walk to the other room and turn the monitor back on and the mouse/keyboard to select "shut down" on the ask screen)

screenshot

Edited by NM64