ralphy wrote: 
> I've attached a patch that creates a quit action and as an example, maps
> the lower case letter o to the quit action.
> 
> I can add the quit action in the next build, but I won't likely include
> a key binding in InputToActionMap.lua as pressing the o key quits
> squeezeplay immediately, no are you sure? prompts.
> 
> > 
Code:
--------------------
  >   > Index: share/applets/SlimBrowser/SlimBrowserApplet.lua
  > ===================================================================
  > --- share/applets/SlimBrowser/SlimBrowserApplet.lua     (revision 1101)
  > +++ share/applets/SlimBrowser/SlimBrowserApplet.lua     (working copy)
  > @@ -1727,6 +1727,12 @@
  > ["scanner_fwd"] = function(self, event)
  > return self.scanner:event(event)
  > end,
  > +
  > +       ["quit"] = function()
  > +               -- disconnect from Player/SqueezeCenter
  > +               appletManager:callService("disconnectPlayer")
  > +               return (EVENT_CONSUME | EVENT_QUIT)
  > +       end,
  > }
  > 
  > 
  > Index: share/jive/InputToActionMap.lua
  > ===================================================================
  > --- share/jive/InputToActionMap.lua     (revision 1101)
  > +++ share/jive/InputToActionMap.lua     (working copy)
  > @@ -36,6 +37,7 @@
  > ["e"]  = "scanner_rew",
  > ["r"]  = "scanner_fwd",
  > ["u"]  = "mute",
  > +       ["o"]  = "quit",
  > 
  > -- original
  > ["/"]   = "go_search",
  > 
--------------------
> > 

Perfect! I surprised myself and despite having no idea as to what I was
doing, I successfully modified the code in the two modules and now
SqueezePlay closes when I hit the "o" key. 

It would be great if you included something along these lines in the
next build.  Personally I would not want any kind of "Are you sure you
want to quit?" dialog since that would just complicate programing the
keystrokes into the remote. 

Thanks!



(2) SB Touch, (3) SB Radio, Cambridge Audio 840AV2, DacMagic Plus, B&W
683, HSU VFT2-MK3, Fluance RT-81, Logitech Harmony Ultimate One,
Vortexbox 2.4 on Intel NUC NUC5i5RYH
------------------------------------------------------------------------
vrette's Profile: http://forums.slimdevices.com/member.php?userid=15256
View this thread: http://forums.slimdevices.com/showthread.php?t=96573

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to