Overriding system keymap.xml
#1
Hi,

I'm trying to override system keymap.xml. As I see I need to create a keyboard.xml file in userdata/keymaps directory. It works form me with this sample:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<global>
    <keyboard>
      <q mod="ctrl">Notification(Key, q, 3)</q>
    </keyboard>
  </global>
  <window3000>
    <keyboard>
      <f7 mod="ctrl">info</f7>
    </keyboard>
  </window3000>
  <window3001>
    <keyboard>
      <f7 mod="ctrl">info</f7>
    </keyboard>
  </window3001>
</keymap>

I override one global key and the f7 key for two custom windows. The problem becomes when I want to override a global key, for example the k key. In the system file this key has this value:

Code:
<keymap>
  <global>
    <keyboard>
      <p>Play</p>
      ...
      <k>XBMC.ActivateWindow(TVRecordings)</k>
    ...

    </keyboard>
  </global>

I want to override the k key with the k key. Yes I want the key k do nothing. I try with:

<k></k>
<k>-</k>
<k>k</k>

But I always get the same result, which is the activation of system file key. It seems like the key is not to overridable.

Any suggentions?

Thanks in advance
Reply
#2
You need to use <k>noop</k>.
Image
Reply
#3
Hi `Black,

thanks. It work fine.

Best regards
Reply

Logout Mark Read Team Forum Stats Members Help
Overriding system keymap.xml0