Skip to content

Key mapping

Stefano Gottardo edited this page Sep 27, 2020 · 3 revisions

You can customize Kodi to allow use keys (of keyboard keys, mouse/remote/joysticks buttons and more) as shortcut for the add-on functions.

How to map an add-on function

In order to add your custom quick shortcuts you have to create or edit the Kodi keyboard.xml file, used to override the standard Kodi key mapping.

Kodi wiki provide all info and examples:

This is a quick example of keyboard.xml content, to map the function Export to library to the G key:

<keymap>
  <global>
    <keyboard>
      <g>RunPlugin(plugin://plugin.video.netflix/keymaps/lib_export)</g>
    </keyboard>
  </global>
</keymap>

List of mappable features

Only some of the add-on functions are available for mapping:

Export to library
RunPlugin(plugin://plugin.video.netflix/keymaps/lib_export)

Remove from library
RunPlugin(plugin://plugin.video.netflix/keymaps/lib_remove)

Notice

Please be careful! Do not hold down the keys for a long time may cause side effects!

This could cause unexpected behaviour of the add-on and/or in worst case scenario also corrupt the database.