leave menu with menu button
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 4 Jan 2006 22:28:36 +0000 (22:28 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 4 Jan 2006 22:28:36 +0000 (22:28 +0000)
data/keymap.xml
lib/python/Screens/Menu.py

index 221f155..fa8293e 100644 (file)
                <key id="KEY_MENU" mapto="mainMenu" flags="mr" />
        </map>
        
+       <map context="MenuActions">
+               <key id="KEY_MENU" mapto="menu" flags="mr" />
+       </map>
+       
        <map context="InfobarShowHideActions">
                <key id="KEY_OK" mapto="toggleShow" flags="m" />
                <key id="KEY_EXIT" mapto="hide" flags="m" />
index 7554d81..0abc173 100644 (file)
@@ -139,10 +139,11 @@ class Menu(Screen):
 
                self["menu"] = MenuList(list)   
                                                        
-               self["actions"] = ActionMap(["OkCancelActions"], 
+               self["actions"] = ActionMap(["OkCancelActions", "MenuActions"], 
                        {
                                "ok": self.okbuttonClick,
-                               "cancel": self.close
+                               "cancel": self.close,
+                               "menu": self.close
                        })
                
                a = getValbyAttr(parent, "title")