Kodi Community Forum

Full Version: help with setting keymap
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm trying to set some short-keys to my kodi with no success so far.
I've followed all kodi.wiki instructions and yet it won't work.
Code:
<keymap>
        <global>
                <keyboard>
                        <h mod="alt”>ActivateWindow(Home)</h>  
            <r mod="ctrl">ActivateWindow(10620)</r>
            <a mod="ctrl">ActivateWindow(10040)</a>
                </keyboard>
        </global>
    <FullscreenVideo>
         <keyboard>
            <d>ActivateWindow(10153)</d>
            <b mod="ctrl">createbookmark</b>
         </keyboard>
    </FullscreenVideo>   
</keymap>

what i'm trying to get is -
H+alt - home page - from every page i'm at
R+crtl - radio channel window
A+ctrl - addon browser window
D - for subtitle search \ download window
B+ctrl - adding bookmark in video

can any one help me sort it out ?
What system is this on?

What are you naming the file?

Where are you putting it?
(2015-05-31, 14:24)FireInMyHole Wrote: [ -> ]What system is this on?

What are you naming the file?

Where are you putting it?

android
keymap.xml
userdata\keymaps\
It should be named keyboard.xml
(2015-06-01, 17:34)FireInMyHole Wrote: [ -> ]It should be named keyboard.xml

Actually it can before named anything.

Have you restarted Kodi, as keymaps are only updated on start up (you can also use an action but restarting is easiest)

What sort of keyboard are you using?
(2015-06-01, 19:17)spoyser Wrote: [ -> ]
(2015-06-01, 17:34)FireInMyHole Wrote: [ -> ]It should be named keyboard.xml

Actually it can before named anything.

Have you restarted Kodi, as keymaps are only updated on start up (you can also use an action but restarting is easiest)

What sort of keyboard are you using?

yes I have,
I'm using a Logitech K400r wireless keyboard (USB dongle)
Irrelevant posting now
Actually it is because of the second quote in this line

Code:
<h mod="alt”>ActivateWindow(Home)</h>

You'll notice it is actually a closing quote, change it to

Code:
<h mod="alt">ActivateWindow(Home)</h>
(2015-06-02, 07:24)spoyser Wrote: [ -> ]Actually it is because of the second quote in this line

Code:
<h mod="alt”>ActivateWindow(Home)</h>

You'll notice it is actually a closing quote, change it to

Code:
<h mod="alt">ActivateWindow(Home)</h>

can't see the different....
?
Depending upon what is rendering them they may appear the same but the final quote is wrong in the version that doesn't work

Code:

"

If you can't see the difference on your machine just trust me and copy this into you keymap file Smile

Code:
<h mod="alt">ActivateWindow(Home)</h>
(2015-06-02, 13:38)spoyser Wrote: [ -> ]Depending upon what is rendering them they may appear the same but the final quote is wrong in the version that doesn't work

Code:

"

If you can't see the difference on your machine just trust me and copy this into you keymap file Smile

Code:
<h mod="alt">ActivateWindow(Home)</h>

10X!
I'll give it a try and let you know.
that's worked!
10x again!

could you tell me how can I make a short-key to get to video add-on list?
I've tried it by directing with ActivateWindow(10040), but that's get me to the setting add-on screen.
(2015-06-02, 22:56)Wildrabbit Wrote: [ -> ]that's worked!
10x again!

could you tell me how can I make a short-key to get to video add-on list?
I've tried it by directing with ActivateWindow(10040), but that's get me to the setting add-on screen.

Try

Code:
ActivateWindow(Videos,addons://sources/video/,return)