editing keymap

amine2010

Vu+ Newbie
Hi Guys,

i need your help. i need to change the function of the button ok to open channel list.
any help will be appreciated.

regards
 

AlexWilMac

Moderator
OK button is one of those reserved and, even if OBH lets you a great freedom at changing keys' functions (Setup/User interface/Button setup), OK won't be available to be customised.
But the question is: are you really, ,really sure you want to change such an important key just not to simply use UP or DOWN to open channel list? What for?
OK is a basis key to recall infobar and 2nd infobar.
OBH has got, in this regard, the very comfortable chance of distinguish the 1st Infobar timeout from the 2nd. You may take advantage of this to finally have an Infobar that appears and disappears at your will, just by pressing OK. How?
Just setting whatever timeouts (in seconds) you like for the 1st Infobar (let's say 3 secs) and NO timeout for the 2nd Infobar.
This way, pressing OK twice, you'll have a fix (2nd) Infobar until you press again OK, and that's is very, very comfortable under many circumstances.
So, even if you manage to change the keymap, you'll loose a lot of control on your infos.
I wouldn't change this just not to press UP or DOWN, instead.
But this is obviously subjective.
 

amine2010

Vu+ Newbie
i understand but i used for many years the OK button to open channel list and UP and DOWN to change channel. many friends of mine had the same issue and some of them asked to change LEFT and RIGHT buttons to change volume which i disagree with them. i am a big fun of the BlackHole and OpenBlackHole images for many years but it really bothers me.
thank you for your reply.
 

Matrix10

Administrator
<map context="InfobarChannelSelection">
<key id="KEY_LEFT" mapto="zapUp" flags="mr" />
<key id="KEY_RIGHT" mapto="zapDown" flags="mr" />
<key id="KEY_UP" mapto="switchChannelUp" flags="mr" />
<key id="KEY_DOWN" mapto="switchChannelDown" flags="mr" />
<key id="KEY_PREVIOUS" mapto="historyBack" flags="mr" />
<key id="KEY_NEXT" mapto="historyNext" flags="mr" />
<key id="KEY_BACK" mapto="historyBack" flags="mr" />
<key id="KEY_FORWARD" mapto="historyNext" flags="mr" />
<key id="KEY_OK" mapto="openServiceList" flags="m" />
<key id="BTN_0" mapto="zapUp" flags="mr" />
<key id="BTN_1" mapto="zapDown" flags="mr" />
</map>

But if you change that then you lose control of the infobar OSD.
 

AlexWilMac

Moderator
i understand but i used for many years the OK button.
Obviously, you are free to use as you like. But, just to tell a story, imagine that two behaviours I really hated when I used BH were exactly the zapping not by P+/P- (instead of LEFT/RIGHT (after all, P+/P- have a meaning, haven't them? so I used a modified keymap) and the very uncomfy behaviour of OK, which has only a timeout after the set seconds (and then it disappears even if you still need the Infobar visible) or no timeout, and this, yes, made you "owner" of the infobar, visible until you decide to press OK again, but you are slave of this no timeout because each zapping results into a visible infobar.
Now, with OBH I have both, automatic and manual control and no need to change keymap to have P+/P- where they must be, that is with the remote appropriate keys. ;)
But world is nice because it's diverse.

And, just to close, the modified keymap will need (as mine under BH) to be replaced afer each major update...
 

Matrix10

Administrator
It’s all mostly a matter of routine
everything has its positive and negative sides.
I have been using BH from the beginning and have no objections to the existing system at all
because I’m used to it.
On the contrary when I use another image I want to restore the same functionality.
 

AlexWilMac

Moderator
Yes, sure: it's all a matter of habits. Only, in 99% of previous decoders or interfaces, the OK was under my control, and I didn't like the way it behaves under BH, which was actually the exception, not the opposite: otherwise I would be accustomed to it as well ;)
 

amine2010

Vu+ Newbie
<map context="InfobarChannelSelection">
<key id="KEY_LEFT" mapto="zapUp" flags="mr" />
<key id="KEY_RIGHT" mapto="zapDown" flags="mr" />
<key id="KEY_UP" mapto="switchChannelUp" flags="mr" />
<key id="KEY_DOWN" mapto="switchChannelDown" flags="mr" />
<key id="KEY_PREVIOUS" mapto="historyBack" flags="mr" />
<key id="KEY_NEXT" mapto="historyNext" flags="mr" />
<key id="KEY_BACK" mapto="historyBack" flags="mr" />
<key id="KEY_FORWARD" mapto="historyNext" flags="mr" />
<key id="KEY_OK" mapto="openServiceList" flags="m" />
<key id="BTN_0" mapto="zapUp" flags="mr" />
<key id="BTN_1" mapto="zapDown" flags="mr" />
</map>

But if you change that then you lose control of the infobar OSD.


thank you all for your support.
as you can see i am not a pro. can you tell me please how to change the keymap.
best regards
 

Matrix10

Administrator
thank you all for your support.
as you can see i am not a pro. can you tell me please how to change the keymap.
best regards
heheh

keymap.xml is located in
/usr/share/enigma2/

first backup or rename keymap.xml
unzip my file and copy/FTP new keymap.xml

restart box or enigma2
 

Attachments

  • keymap.zip
    3.1 KB · Views: 45

blu8

Vu+ User
hello Matrix
is possibility on OBH to have the return to the previous channel on the zero key?

Thx

Inviato dal mio MI 9 utilizzando Tapatalk
 

AlexWilMac

Moderator
Yes, go to Setup / User Interface / Channel selection
and set the option "Enable panic button" to OFF

Menu Impostazioni/Interfaccia utente/Selezione canale
impostare l'opzione "Abilitare il tasto panic" a OFF.
 

KFL

Vu+ User
i understand but i used for many years the OK button to open channel list and UP and DOWN to change channel.
I use UP/DOWN buttons to open channel list and move between channels. it is customizable in OBH settings.
Example:
1.I press first time UP or DOWN button => channel list opened, stay tuned on current channel (this is customizable: stay or move, move is default)
2.I press again UP or DOWN => move cursor between channels
3.I press OK => tune to selected channel

I think you do not need change OK button behaviour, look in channel selection settings - there are lot of possibilities.
 

AlexWilMac

Moderator
Is what I tried to tell him... even because he'll loose the important function of Infobar.
But he prefers such a complicated solution and to replace after each major update the customized keymap...
 
  • Like
Reactions: KFL

Ahmed_2009

Vu+ Newbie
Can you help me for change cross left <key id="KEY_LEFT" and cross right <key id="KEY_RIGHT" to volume up and volume down ? so we try changed it by above method but not success
 

AlexWilMac

Moderator
Not every keys can be changed! Some are reserved to their original use only! For instance, you can't think of changing the "OK" button behaviour.
 
Top