v16 Key mapping for context menu in Music not working
#1
Hello all,

after about 30 hours of hard work I've definitely decide to ask somewhere else Wink

I am running LibreELEC on my Raspberry Pi 3 connected to the AVR Onkyo and controlled via CEC using my Harmony 785 remote.
After a lot of reading I've succesfully configured everything the way I want, but the Context Menu mapping in the Music folder.

I am using 4 special Harmony's keys, 3 are remapped using Keymap Editor Add-on:
- Guide <key id="237"> for global going to "Home"
- Info <key id="195"> for global "Show Info"
- Menu <key id="236"> for "Favorites" in the Homescreen
- Menu <key id="236"> for "Context menu" configured partialy for every folder (Pictures, Video, Filemanager...)
The last one special key:
- Rec (red square) uses default Kodi mapping - i.e. in the lists it shows context menu or in video playback it shows the textual system information about codec, CPU usage and so on, what is perfectly fine

My problem is, that even the Music folder is configured exactly the same way as all of the other folders, the harmony's "Menu" button brings me always to Homescreen, and the "Rec" button shows the context menu, regardless of the "keymap" settings.
I've tried any possible remapping via the Keymap editor, i.e. "Music->Windows->Open Home" to other key using my BT keyboard, but nothing helps. The strange thing is, that in all of the remaining folders the remapping works flawlessly fine.

Here's my current "gen.xml" file:

Code:
<keymap>
  <videos>
    <keyboard>
      <key id="236">contextmenu</key>
    </keyboard>
  </videos>
  <programs>
    <keyboard>
      <key id="236">contextmenu</key>
    </keyboard>
  </programs>
  <pictures>
    <keyboard>
      <key id="236">contextmenu</key>
    </keyboard>
  </pictures>
  <global>
    <keyboard>
      <key id="195">info</key>
      <key id="237">activatewindow(home)</key>
    </keyboard>
  </global>
  <filemanager>
    <keyboard>
      <key id="236">contextmenu</key>
    </keyboard>
  </filemanager>
  <fullscreenvideo>
    <keyboard>
      <key id="237">activatewindow(home)</key>
    </keyboard>
  </fullscreenvideo>
  <music>
    <keyboard>
      <key id="236">contextmenu</key>
    </keyboard>
  </music>
  <home>
    <keyboard>
      <key id="236">activatewindow(favourites)</key>
    </keyboard>
  </home>
</keymap>

What I am doing wrong? Can anybody help me?
Reply
#2
Set your context menu mapping in global and try again. It will still use the button for favs when you are on the home screen, and then context menu everywhere else. Otherwise, there are a lot of missing places where the key is not set as the context menu button.
Reply
#3
Thank you for the advice. Last time I've tried this the side-effect was, that in the fav window the second press of the "Menu" button did not close the Favs, but opened the Favs context menu, which was unwanted. I'll try to set the global mapping for Context menu and re-map the "Menu" button in the Favs.
Hope this will work.
Reply
#4
Hello, I've changed my settings using the Global section. As I wrote before, this time the Menu button does not close the Favs, but shows context menu instead. I want to use Menu for open/close Favs in Home and for Context menu everywhere else.

Here's my current gen.xml:

Code:
<?xml version="1.0" encoding="utf-8"?>
<keymap>
  <home>
    <keyboard>
      <key id="236">
        activatewindow(favourites)
      </key>
      <key id="229">
        activatewindow(contextmenu)
      </key>
    </keyboard>
  </home>
  <global>
    <keyboard>
      <key id="195">
        info
      </key>
      <key id="237">
        activatewindow(home)
      </key>
      <key id="236">
        contextmenu
      </key>
    </keyboard>
  </global>
  <fullscreenvideo>
    <keyboard>
      <key id="237">
        activatewindow(home)
      </key>
    </keyboard>
  </fullscreenvideo>
</keymap>

Any other advices?
Reply
#5
I've tried yet another trick editing the gen.xml file manually - adding the favourites section:
Code:
<favourites>
    <keyboard>
      <key id="236">activatewindow(favourites)</key>
    </keyboard>
</favourites>

or, as a second try
Code:
<favourites>
    <keyboard>
      <key id="236">activatewindow(home)</key>
    </keyboard>
</favourites>

Still no luck, Menu button (236) allways opens the Context menu instead of closing the Favs.
Reply

Logout Mark Read Team Forum Stats Members Help
Key mapping for context menu in Music not working0