Kodi Community Forum
v19 Keymap Editor (Kodi 18/19 and on) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: v19 Keymap Editor (Kodi 18/19 and on) (/showthread.php?tid=356730)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


RE: Keymap Editor (Kodi 18/19 and on) - Karellen - 2023-07-28

(2023-07-28, 04:22)patm95 Wrote: Hi all. I’m trying to map a button on my keyboard to go straight to “movies” “tv shows” ect. Is this possible?? I can’t find it in the menu…
Try...
xml:
<y mod="ctrl,shift">ActivateWindow(Videos,videodb://movies/titles/,return)</y>
<z mod="ctrl,shift">ActivateWindow(Videos,videodb://tvshows/titles/,return)</z>

You can use a different key combination, but just make sure it isn't being used by another function.


RE: Keymap Editor (Kodi 18/19 and on) - patm95 - 2023-07-29

Thank you for this!  That worked!  I am trying to do the same thing for music directory, defaulting to artists. 
I am trying :  <x mod="F6">ActivateWindow(Music,musicdb://music/artists/,return)</x>

But it's not working. It's taking me to music, but not artists. 

Any advice?

Thank you!


RE: Keymap Editor (Kodi 18/19 and on) - Fuchs2468 - 2023-07-29

(2023-07-29, 01:53)patm95 Wrote: Thank you for this!  That worked!  I am trying to do the same thing for music directory, defaulting to artists. 
I am trying :  <x mod="F6">ActivateWindow(Music,musicdb://music/artists/,return)</x>

But it's not working. It's taking me to music, but not artists. 

Any advice?

Thank you!


Try it once with:
xml:
<x mod="F6">ActivateWindow(music,library://music/artists.xml/,return)</x>



RE: Keymap Editor (Kodi 18/19 and on) - patm95 - 2023-07-29

That worked!  Thank you!


RE: Keymap Editor (Kodi 18/19 and on) - PantsOnFireAgain - 2023-08-11

Dear all, 1st post under my new account.

-I’d been a member since early 2000’s and was bit surprised to come back today and find the forum no longer recognise my mail address.

Anyway…

I haven’t edited controller maps since maybe 8-10yrs ago!
(Greatful to see this add on)

—-trying now to map LB and RB to skip PREV / NEXT video (when I’m in full screen video) , o]in order to quickly hit the next video in the playlist basically.


I just ran the add on, went to >

EDIT > FS VIDEO > PLAYBACK > Next/Previous,
Kodi asks me to push button, I do so.

However, not taking effect/
- instead, it is just skipping forward a little bit in the way that LT and RT do currently.

—-do I need to somehow remove a map/function that LB & RB have elsewhere ?
If so, where do I look please?

Kind thanks.


RE: Keymap Editor (Kodi 18/19 and on) - PantsOnFireAgain - 2023-08-11

This is with the Elite Series2 controller BTW.


RE: Keymap Editor (Kodi 18/19 and on) - PantsOnFireAgain - 2023-08-11

The REMOVE option is not working for me either.

Is something read-only?


RE: Keymap Editor (Kodi 18/19 and on) - PantsOnFireAgain - 2023-08-11

Some details, sorry….

* KODI 20.2 (20.2.0)
* KEYNAP EDITOR 1.1.5


RE: Keymap Editor (Kodi 18/19 and on) - paul.j.ghosh - 2023-09-04

Does Keymap Editor work on Kodi 20.2?


RE: Keymap Editor (Kodi 18/19 and on) - pkscout - 2023-09-04

(2023-09-04, 01:08)paul.j.ghosh Wrote: Does Keymap Editor work on Kodi 20.2?
Yes.


RE: Keymap Editor (Kodi 18/19 and on) - paul.j.ghosh - 2023-09-04

(2023-09-04, 11:53)pkscout Wrote:
(2023-09-04, 01:08)paul.j.ghosh Wrote: Does Keymap Editor work on Kodi 20.2?
Yes.
Hmm... how do I enable logging for Keymap Editor?  I turned on debug logging but nothing relevant appeared in the logs.


RE: Keymap Editor (Kodi 18/19 and on) - pkscout - 2023-09-04

(2023-09-04, 16:21)paul.j.ghosh Wrote:
(2023-09-04, 11:53)pkscout Wrote:
(2023-09-04, 01:08)paul.j.ghosh Wrote: Does Keymap Editor work on Kodi 20.2?
Yes.
Hmm... how do I enable logging for Keymap Editor?  I turned on debug logging but nothing relevant appeared in the logs.
There really isn't anything the addon logs (even if debug mode).  I took over maintenance on this mostly just to get it to Python3 and have never done much else with the code other than update a few key mappings since then.  Maybe if you describe the issue you're having, someone who uses it more than I do may be able to help.  Or I can do some digging.


RE: Keymap Editor (Kodi 18/19 and on) - paul.j.ghosh - 2023-09-04

Well, since I discovered when upgrading from Kodi 17.6 to 20.2 that some keymaps were removed I was trying to use Keymap Editor to bring back the mappings.  Here is a link to what was changed: 374327 (thread)

I installed Keymap Editor, went to the appropriate action, selected Edit Key, it stated press button within 5 seconds, I pressed the button, the 5 second timer went away, and the button was not learned... manually checking the gen.xml showed the following content:

$ cat gen.xml
<keymap />


RE: Keymap Editor (Kodi 18/19 and on) - izprtxqkft - 2023-09-04

(2023-09-04, 22:27)paul.j.ghosh Wrote: Well, since I discovered when upgrading from Kodi 17.6 to 20.2 that some keymaps were removed I was trying to use Keymap Editor to bring back the mappings.  Here is a link to what was changed: 374327 (thread)

I installed Keymap Editor, when to the appropriate action, selected Edit Key, it stated press button within 5 seconds, I pressed the button, the 5 second timer went away, and the button was not learned... manually checking the gen.xml showed the following content:

$ cat gen.xml
<keymap />

that indicates the button you are trying to learn is handled by the host operating system on the device and never gets sent to kodi - will not be available for mapping when this happens

examples include the Home button and Volume buttons on most android remotes


RE: Keymap Editor (Kodi 18/19 and on) - paul.j.ghosh - 2023-09-04

Debug log snippet:
2023-09-04 15:40:30.110 T:1489371   debug <general>: EventClient: button code 194 pressed
2023-09-04 15:40:30.110 T:1489371   debug <general>: EventClient: button code 194 released

I manually created gen.xml with the following and it works:

$ cat gen.xml
<keymap>
   <fullscreenvideo>
      <customcontroller name="Harmony">
         <button id="195">NextSubtitle</button>
         <button id="194">ShowSubtitles</button>
      </customcontroller>
   </fullscreenvideo>
</keymap>