Here is an alternative suggestion. Why not bring up the menu with press one, and then shut down if the button is pressed again (after a slight delay)? This should prevent accidental shutdowns, give the options to the user and allow the user to shut down without a mouse/keyboard.
-- Pressing power button displays dialog, it does not switch off computer https://launchpad.net/bugs/33820 -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs