Kodi Community Forum

Full Version: Pause music while in library mode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
no such mapping by default but you can easily add one yourself. or use the player controls in the lhs menu. your choice.
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