Kodi Community Forum

Full Version: Help with Keymap
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I am trying to edit the keymap to achieve a couple of different things.

1. Pressing up or down whilst watching live tv opens the EPG rather than changing channels
2. With guide open, channel up or channel down actually pages up or down
3. Pressing guide button on remote, whilst EPG is shown, actually escapes back to live tv

So far my keymap.xml file is:

<keymap>
<FullScreenLiveTV>
<key id="127184">record</key>
<down>pvrosdguide</down>
<up>pvrosdguide</up>
</FullScreenLiveTV>
<pvrosdchannels>
<channelup>pageup</channelup>
<channeldown>pagedown</channeldown>
</pvrosdchannels>
<pvrosdguide>
<channelup>pageup</channelup>
<channeldown>pagedown</channeldown>
<pvrosdguide>Escape</pvrosdguide>
</pvrosdguide>
</keymap>

Obviously doing something wrong as nothing seems to work. Can anyone help please?
Did you encode the file as UTF-8? You also need to re-launch Kodi.
(2015-02-28, 13:14)wgstarks Wrote: [ -> ]Did you encode the file as UTF-8? You also need to re-launch Kodi.

Yes, encoded in UTF-8 and I know that I need to restart every time I edit.
Thanks.
Tried this and I still can't get it to work. Anyone have any suggestions?

<xml version="1.0" encoding="UTF-8">
<keymap>
<FullScreenLiveTV>
<keyboard>
<key id="127184">record</key>
<down>ActivateWindow(TVGuide)</down>
<up>ActivateWindow(TVGuide)</up>
</keyboard>
</FullScreenLiveTV>
<pvrosdchannels>
<keyboard>
<channelup>pageup</channelup>
<channeldown>pagedown</channeldown>
</keyboard>
</pvrosdchannels>
<TVGuide>
<keyboard>
<channelup>pageup</channelup>
<channeldown>pagedown</channeldown>
<E>Escape</E>
</keyboard>
</TVGuide>
</keymap>
OK, got it working (had to start .xml with <keymap>. However, when you try the EPG closes, it loads the side bar automatically so I still have to double press "guide" to get back to liveTV.

<keymap>
<FullScreenLiveTV>
<keyboard>
<key id="127184">record</key>
<down>ActivateWindow(TVGuide)</down>
<up>ActivateWindow(TVGuide)</up>
</keyboard>
</FullScreenLiveTV>
<TVGuide>
<keyboard>
<e>Close</e>
</keyboard>
</TVGuide>
</keymap>