Skip to content

Commit

Permalink
keymap: add a few generic keys
Browse files Browse the repository at this point in the history
KEY_EPG: show epg
KEY_PROGRAM: program a timer event
KEY_SCREEN: enable PiP
KEY_FILE: switch to filelist
KEY_LIST: switch to playlist
  • Loading branch information
pieterg committed Jan 4, 2011
1 parent 4ed7d00 commit 09c9f61
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data/keymap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<map context="InfobarEPGActions">
<key id="KEY_INFO" mapto="showEventInfo" flags="b" />
<key id="KEY_INFO" mapto="showEventInfoPlugin" flags="l" />
<key id="KEY_EPG" mapto="showEventInfo" flags="m" />
</map>

<map context="InfobarInstantRecord">
Expand Down Expand Up @@ -185,6 +186,7 @@
<key id="KEY_VIDEO" mapto="showMovies" flags="m" />
<key id="KEY_RADIO" mapto="showRadio" flags="m" />
<key id="KEY_TV" mapto="showTv" flags="m" />
<key id="KEY_FILE" mapto="showMovies" flags="m" />
</map>

<map context="InfobarAudioSelectionActions">
Expand All @@ -202,6 +204,10 @@
<key id="KEY_GREEN" mapto="subserviceSelection" flags="b" />
</map>

<map context="InfobarPiPActions">
<key id="KEY_SCREEN" mapto="activatePiP" flags="b" />
</map>

<map context="InfobarSubserviceQuickzapActions">
<key id="KEY_PREVIOUS" mapto="prevSubservice" flags="m" />
<key id="KEY_NEXT" mapto="nextSubservice" flags="m" />
Expand Down Expand Up @@ -329,6 +335,7 @@
<key id="KEY_PAUSE" mapto="timeshiftStart" flags="m" />
<key id="KEY_TV" mapto="timeshiftStop" flags="m" />
<key id="KEY_STOP" mapto="timeshiftStop" flags="m" />
<key id="KEY_TIME" mapto="timeshiftStart" flags="m" />
</map>

<map context="InfobarTimeshiftActivateActions">
Expand All @@ -355,6 +362,7 @@
<key id="KEY_UP" mapto="up" flags="m" />
<key id="KEY_DOWN" mapto="down" flags="m" />
<key id="KEY_VIDEO" mapto="movieList" flags="m" />
<key id="KEY_FILE" mapto="movieList" flags="m" />
</map>

<map context="MoviePlayerActions">
Expand Down Expand Up @@ -428,6 +436,7 @@

<map context="ChannelSelectEPGActions">
<key id="KEY_INFO" mapto="showEPGList" flags="m" />
<key id="KEY_EPG" mapto="showEPGList" flags="m" />
</map>

<map context="ChannelSelectEditActions">
Expand All @@ -454,6 +463,7 @@
<key id="KEY_CHANNELDOWN" mapto="prevBouquet" flags="m" />
<key id="KEY_NEXT" mapto="nextService" flags="m" />
<key id="KEY_PREVIOUS" mapto="prevService" flags="m" />
<key id="KEY_PROGRAM" mapto="timerAdd" flags="m" />
</map>

<map context="EventViewActions">
Expand All @@ -465,11 +475,13 @@
<key id="KEY_GREEN" mapto="timerAdd" flags="m" />
<key id="KEY_INFO" mapto="contextMenu" flags="m" />
<key id="KEY_MENU" mapto="contextMenu" flags="m" />
<key id="KEY_PROGRAM" mapto="timerAdd" flags="m" />
</map>

<map context="EventViewEPGActions">
<key id="KEY_YELLOW" mapto="openSingleServiceEPG" flags="m" />
<key id="KEY_BLUE" mapto="openMultiServiceEPG" flags="m" />
<key id="KEY_EPG" mapto="openSingleServiceEPG" flags="m" />
</map>

<map context="OkCancelActions">
Expand Down Expand Up @@ -616,5 +628,7 @@
<key id="KEY_CHANNELDOWN" mapto="prevBouquet" flags="m" />
<key id="KEY_VIDEO" mapto="delete" flags="m" />
<key id="KEY_TEXT" mapto="subtitles" flags="m" />
<key id="KEY_FILE" mapto="nextBouquet" flags="m" />
<key id="KEY_LIST" mapto="prevBouquet" flags="m" />
</map>
</keymap>
4 changes: 4 additions & 0 deletions lib/python/Screens/InfoBarGenerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,10 @@ def __init__(self):
except:
self.session.pipshown = False
if SystemInfo.get("NumVideoDecoders", 1) > 1:
self["PiPActions"] = HelpableActionMap(self, "InfobarPiPActions",
{
"activatePiP": (self.showPiP, _("activate PiP")),
})
if (self.allowPiP):
self.addExtension((self.getShowHideName, self.showPiP, lambda: True), "blue")
self.addExtension((self.getMoveName, self.movePiP, self.pipShown), "green")
Expand Down

0 comments on commit 09c9f61

Please sign in to comment.