Pi2 B with RC6 remote duplicates key events

Similar to @DBMandrake, I am also using an Xbox 360 DVD remote.

I have set mine up to open the power menu when I press KEY_POWER. And then close the menu if I press KEY_POWER again. The relevant changes to remote.xml were:

  1. set power button to activate shutdown menu under normal circumstances:

       ... snip ...
    
       <!--   <power>ShutDown()</power>   -->
       <power>ActivateWindow(shutdownmenu)</power>
    
  2. set power button to go back (close shutdown menu), whenever shutdown menu is open:

    PreviousMenu PreviousMenu