Kodi Community Forum

Full Version: Eject DVD Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My wife wants an eject dvd button. I using xTV skin.

I've already modified my Keymap.xml file to have the zero button pop up the shutdown menu when I'm on the Home screen.

I would like to have the five button eject the dvd when I'm at the Home screen.

Here is what I've tried. The zero button works, but the five button does not work.
Code:
<Home>
<remote>
      <zero>ActivateWindow(shutdownmenu)</zero>
      <five>XBMC.EjectTray()</five>
      <menu>XBMC.Skin.ToggleSetting(HomeViewToggle)</menu>
      <info>XBMC.ActivateWindow(SystemInfo)</info>
      <clear>XBMC.ActivateWindow(Weather)</clear>
      <hash>XBMC.ActivateWindow(Settings)</hash>
    </remote>
</Home>


I've tried an onclick for the five button but then xbmc would not load.

Code:
<Home>
<remote>
      <zero>ActivateWindow(shutdownmenu)</zero>
      <five><onclick>XBMC.EjectTray()</onclick></five>
      <menu>XBMC.Skin.ToggleSetting(HomeViewToggle)</menu>
      <info>XBMC.ActivateWindow(SystemInfo)</info>
      <clear>XBMC.ActivateWindow(Weather)</clear>
      <hash>XBMC.ActivateWindow(Settings)</hash>
    </remote>
</Home>