Can we write some condition for any key in keyboard.xml?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Lightbulb  Can we write some condition for any key in keyboard.xml?
Post: #1
Can we write a condition for any key in keyboard.xml?
for ex:
PHP Code:
F5 condition="a condition">ReloadSkin</F5>

Thanks for help in advance.
find quote
spiff Offline
Retired Developer
Posts: 12,385
Joined: Nov 2003
Post: #2
no. only context is window.
find quote
empezar Offline
Junior Member
Posts: 2
Joined: Jan 2015
Reputation: 0
Post: #3
This would make the key mapping a lot more powerful. Missing this feature.
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 24,774
Joined: Jan 2011
Reputation: 334
Location: Arizona, USA
Post: #4
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.

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log (wiki), [[Video library]] = Video library (wiki), [[SMB]] = SMB (wiki) , [[userdata]] = userdata (wiki), etc
find quote