Keyboard shortcut for 'search'?
#1
Hi, apologies if this has already been asked elsewhere, i have looked but couldn't find anything.

I wondered if it was possible to set up a keyboard shortcut to allow me to search within my music or movies library? (without having to click the search option on the fly-out menu); and if so, how? (editing the keyboard xml file?)

Thanks in advance,
Matt
Reply
#2
You can add the following statement to your custom keyboard.xml file:
Code:
<some-key>SendClick(8)</some-key>

If you don't already have a custom keyboard.xml file in your userdata (wiki)\keymaps\ directory, you can create one there with the following contents:
Code:
<keymap>
  <global>
    <keyboard>
      <some-key>SendClick(8)</some-key>
    </keyboard>
  </global>
</keymap>

Obviously, "some-key" needs to be substituted with the name of the actual key you want mapped to this function.
Reply
#3
That's brilliant, thanks very much!
Reply
#4
I do not get it to work, what might be the mistake:

Code:
<keymap>
  <FullscreenVideo>
    <keyboard>
    <b mod="ctrl">ActivateWindow(VideoBookmarks)</b>
      <b>RunScript(C:\Users\Biff\AppData\Roaming\XBMC\userdata\setbookmark.py)</b>
    </keyboard>
  </FullscreenVideo>
  <VideoOSD>
    <keyboard>
      <b>RunScript(C:\Users\Biff\AppData\Roaming\XBMC\userdata\setbookmark.py)</b>
      <b mod="ctrl">ActivateWindow(VideoBookmarks)</b>
    </keyboard>
  </VideoOSD>
  
  <global>
    <keyboard>
    <F3 mod="ctrl">SendClick(8)</F3><!--   Search   -->
      <numpadone>LastPage</numpadone>
      <numpadthree>PageDown</numpadthree>
      <numpadseven>FirstPage</numpadseven>
      <numpadnine>PageUp</numpadnine>
      <f mod="ctrl">ActivateWindow(Favourites)</f>
      <F2>RunPlugin(plugin://script.simpleplaylists/?mode=addCurrentUrl)</F2>
          </keyboard>
    
  </global>
  <Favourites>

    <keyboard>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
    </keyboard>
  </Favourites>
  
</keymap>
Newest stable Kodi (portable), Win 10 | skin: default Confluence
Reply

Logout Mark Read Team Forum Stats Members Help
Keyboard shortcut for 'search'?0