55
66from skin import findSkinScreen , menus
77from Components .ActionMap import HelpableNumberActionMap , HelpableActionMap
8+ from Components .AVSwitch import iAVSwitch
89from Components .config import ConfigDictionarySet , NoSave , config , configfile
910from Components .Pixmap import Pixmap
1011from Components .PluginComponent import plugins
@@ -210,7 +211,7 @@ def __init__(self, session, parentMenu):
210211 self .onShown .append (self .openTestA )
211212 elif config .usage .menuType .value == "horzicon" and findSkinScreen ("Iconmain" ):
212213 self .onShown .append (self .openTestB )
213- self ["menuActions" ] = HelpableNumberActionMap (self , ["OkCancelActions" , "MenuActions" , "ColorActions" , "NumberActions" ], {
214+ self ["menuActions" ] = HelpableNumberActionMap (self , ["OkCancelActions" , "MenuActions" , "ColorActions" , "NumberActions" , "TextActions" ], {
214215 "ok" : (self .okbuttonClick , _ ("Select the current menu item" )),
215216 "cancel" : (self .closeNonRecursive , _ ("Exit menu" )),
216217 "close" : (self .closeRecursive , _ ("Exit all menus" )),
@@ -225,7 +226,8 @@ def __init__(self, session, parentMenu):
225226 "7" : (self .keyNumberGlobal , _ ("Direct menu item selection" )),
226227 "8" : (self .keyNumberGlobal , _ ("Direct menu item selection" )),
227228 "9" : (self .keyNumberGlobal , _ ("Direct menu item selection" )),
228- "0" : (self .keyNumberGlobal , _ ("Direct menu item selection" ))
229+ "0" : (self .keyNumberGlobal , _ ("Direct menu item selection" )),
230+ "textlong" : (self .keyText , _ ("Switch to 720p video" ))
229231 }, prio = 0 , description = _ ("Menu Common Actions" ))
230232 if config .usage .menuSortOrder .value == "user" :
231233 self ["moveActions" ] = HelpableActionMap (self , ["NavigationActions" ], {
@@ -625,6 +627,9 @@ def keyBottom(self):
625627 if self .sortMode and self .selectedEntry is not None :
626628 self .moveAction ()
627629
630+ def keyText (self ):
631+ iAVSwitch .setVideoModeDirect ("720p50" )
632+
628633 def moveAction (self ):
629634 menuListCopy = list (self .menuList )
630635 entry = menuListCopy .pop (self .currentIndex )
0 commit comments