2022-07-17, 11:53
Hi,
I have a keymap file that used to contain two commands and worked fine.
I tried to edit it to add a third command to shut down the PC, and I couldn't get it to work (it would only exit Kodi, not shut down the PC). I tried a few different possibilities (like "Shutdown" vs "Shutdown()"). Then at some point, the two existing commands stopped working as well. Now my keymap file just won't work, like it doesn't exist.
After that I changed all three commands from using key combos (with CTRL and ALT) to using Function keys, hoping this might fix it by being simpler, but still no luck.
The keymap has the right filename (keyboard.xml) in the right directory (%appdata%\Kodi\userdata\keymaps) and most importantly, it worked fine for months and I don't know what changed.
Below is my current keymap file (after changing to Function keys) and a debug log after I opened Kodi and pressed the three mapped Function keys
I still don't know why I couldn't get the Shutdown command to work either, but in the meantime I want to get my original two commands working again!
Current Keymap file: https://paste.kodi.tv/zesoceqafo
Debug log: https://paste.kodi.tv/umefawapuz.kodi
Kodi v19.4
Windows v10, all updates to 17/07/22
Thanks for any help
I have a keymap file that used to contain two commands and worked fine.
I tried to edit it to add a third command to shut down the PC, and I couldn't get it to work (it would only exit Kodi, not shut down the PC). I tried a few different possibilities (like "Shutdown" vs "Shutdown()"). Then at some point, the two existing commands stopped working as well. Now my keymap file just won't work, like it doesn't exist.
After that I changed all three commands from using key combos (with CTRL and ALT) to using Function keys, hoping this might fix it by being simpler, but still no luck.
The keymap has the right filename (keyboard.xml) in the right directory (%appdata%\Kodi\userdata\keymaps) and most importantly, it worked fine for months and I don't know what changed.
Below is my current keymap file (after changing to Function keys) and a debug log after I opened Kodi and pressed the three mapped Function keys
I still don't know why I couldn't get the Shutdown command to work either, but in the meantime I want to get my original two commands working again!
Current Keymap file: https://paste.kodi.tv/zesoceqafo
Debug log: https://paste.kodi.tv/umefawapuz.kodi
Kodi v19.4
Windows v10, all updates to 17/07/22
Thanks for any help