Jump to content


Photo

help on keymap.xml


  • Please log in to reply
6 replies to this topic

#1 gspock

  • Senior Member
  • 113 posts

+3
Neutral

Posted 21 January 2021 - 10:12

Hi,

I am trying to change just 2 keys when playing back recorded movies.

I had a look at /usr/share/enigma2/keymap.xml file but this seems quite complex to me. Is the "MediaPlayerActions" the correct part to focus on ?

Thanks,

GS


VU+ DUO-4K-SE with 1 DBV-C and 1TB Hitachi HDD, OpenPLi 8.3


Re: help on keymap.xml #2 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 21 January 2021 - 12:14

https://github.com/O...InfoBar.py#L163

+

https://github.com/O...nerics.py#L1346


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: help on keymap.xml #3 gspock

  • Senior Member
  • 113 posts

+3
Neutral

Posted 21 January 2021 - 12:18

 

Thank you. I am afraid I do not have the skills to understand that. I had the hope that the keymap.xml file update would do it.

Cheers.


VU+ DUO-4K-SE with 1 DBV-C and 1TB Hitachi HDD, OpenPLi 8.3


Re: help on keymap.xml #4 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 21 January 2021 - 12:31

/usr/share/enigma2/keymap.xml 

MediaPlayerActions

InfobarSeekActions


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: help on keymap.xml #5 gspock

  • Senior Member
  • 113 posts

+3
Neutral

Posted 21 January 2021 - 14:17

/usr/share/enigma2/keymap.xml 

MediaPlayerActions

InfobarSeekActions

:thumbs-up:


VU+ DUO-4K-SE with 1 DBV-C and 1TB Hitachi HDD, OpenPLi 8.3


Re: help on keymap.xml #6 ims

  • PLi® Core member
  • 13,608 posts

+211
Excellent

Posted 21 January 2021 - 15:44

And you can add "map contents=" actions with new lines touser defined file /usr/share/enigma2/keytranslation.xml (you must create it). Do not forget add it to backup files.

Then this lines are added to actions. And because this file is loaded after keymap.xml, if there you using same key which exist in keymap.xml, valid should be your own lines ( I did not try it or I forgot it).

 

example:

<keymap>
	<map context="CSFDRunActions">
		<key id="KEY_BOOKMARKS" mapto="csfd" flags="m"/>
	</map>

	<map context="GMEPGSelectActions">
		<key id="KEY_BOOKMARKS" mapto="csfd" flags="m"/>
	</map>
	<map context="InfobarMovieListActions">
		<key id="KEY_CHANNELUP" mapto="up" flags="m"/>
		<key id="KEY_CHANNELDOWN" mapto="down" flags="m"/>
	</map>
</keymap>

 


Kdo nic nedělá, nic nezkazí!

Re: help on keymap.xml #7 gspock

  • Senior Member
  • 113 posts

+3
Neutral

Posted 21 January 2021 - 16:46

 

And you can add "map contents=" actions with new lines touser defined file /usr/share/enigma2/keytranslation.xml (you must create it). Do not forget add it to backup files.

Then this lines are added to actions. And because this file is loaded after keymap.xml, if there you using same key which exist in keymap.xml, valid should be your own lines ( I did not try it or I forgot it).

 

example:

<keymap>
	<map context="CSFDRunActions">
		<key id="KEY_BOOKMARKS" mapto="csfd" flags="m"/>
	</map>

	<map context="GMEPGSelectActions">
		<key id="KEY_BOOKMARKS" mapto="csfd" flags="m"/>
	</map>
	<map context="InfobarMovieListActions">
		<key id="KEY_CHANNELUP" mapto="up" flags="m"/>
		<key id="KEY_CHANNELDOWN" mapto="down" flags="m"/>
	</map>
</keymap>

thx !


VU+ DUO-4K-SE with 1 DBV-C and 1TB Hitachi HDD, OpenPLi 8.3



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users