Kodi Community Forum
Pause music while in library mode - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Pause music while in library mode (/showthread.php?tid=79292)



Pause music while in library mode - devourer - 2010-08-19

Hi,

I searched the wiki and searched the forums but couldn't find an answer. The Spacebar is normally used for pausing playback. But in library mode spacebar is used to display current playinglist.

Is there a way to bypass this? Reason I'm asking is i'm using a harmony one which is mapped to keyboard keystrokes. So pausing music while in librarymode just isn't possible at the moment for me.


- spiff - 2010-08-19

no such mapping by default but you can easily add one yourself. or use the player controls in the lhs menu. your choice.


- jhsrennie - 2010-08-19

This used to annoy me too, though I now use an MCE remote with pause sending ctrl-P intead of space. I'm a bit surprised your Harmony sends a space for pause.

Anyhow open %appdata%\xbmc\userdata\keymaps and create a file called keyboard.xml containing:

Code:
<keymap>
  <MyMusicPlaylist>
    <keyboard>
      <space>Pause</space>
    </keyboard>
  </MyMusicPlaylist>
  <MyMusicFiles>
    <keyboard>
      <space>Pause</space>
    </keyboard>
  </MyMusicFiles>
  <MyMusicLibrary>
    <keyboard>
      <space>Pause</space>
    </keyboard>
  </MyMusicLibrary>
  <MyVideoLibrary>
    <keyboard>
      <space>Pause</space>
    </keyboard>
  </MyVideoLibrary>
  <MyVideoFiles>
    <keyboard>
      <space>Pause</space>
    </keyboard>
  </MyVideoFiles>
  <MyVideoPlaylist>
    <keyboard>
      <space>Pause</space>
    </keyboard>
  </MyVideoPlaylist>
</keymap>

This will override the default actions for space and force it to always execute "Pause".

JR