fixes bug #362
authorthedoc <thedoc@atom.(none)>
Fri, 1 Jan 2010 13:00:47 +0000 (14:00 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 6 Oct 2010 20:48:57 +0000 (22:48 +0200)
allow assigning standby function to long power button press

mytest.py

index 253ee16..a3cfb5a 100755 (executable)
--- a/mytest.py
+++ b/mytest.py
@@ -383,6 +383,8 @@ class PowerKey:
                                                menu_screen = self.session.openWithCallback(self.MenuClosed, MainMenu, x)
                                                menu_screen.setTitle(_("Standby / Restart"))
                                                return
+               elif action == "standby":
+                       self.standby()
 
        def powerdown(self):
                self.standbyblocked = 0