Kodi Community Forum
Can we write some condition for any key in keyboard.xml? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Can we write some condition for any key in keyboard.xml? (/showthread.php?tid=172400)



Can we write some condition for any key in keyboard.xml? - slinuxgeek - 2013-08-30

Can we write a condition for any key in keyboard.xml?
for ex:
PHP Code:
<keymap>
  <global>
    <
keyboard>
      <
F5 condition="a condition">ReloadSkin</F5>
    </
keyboard>
  </global>
</
keymap

Thanks for help in advance.


RE: Can we write some condition for any key in keyboard.xml? - spiff - 2013-08-30

no. only context is window.


RE: Can we write some condition for any key in keyboard.xml? - empezar - 2015-02-04

This would make the key mapping a lot more powerful. Missing this feature.


RE: Can we write some condition for any key in keyboard.xml? - Ned Scott - 2015-02-04

It is possible to map a key to run a python script in Kodi, and then have the script check for various conditions. It depends on what the final goal is.