Author: tom
Date: Tue Feb 10 19:25:07 2009
New Revision: 4150

URL: http://svn.slimdevices.com?rev=4150&root=Jive&view=rev
Log:
Bug: N/A
Description:
hideOnAllButtonInput was broke, needs to ignore UP and DOWN events, so that the 
press and hold based actions can occur.

Modified:
    7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Window.lua

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Window.lua
URL: 
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Window.lua?rev=4150&root=Jive&r1=4149&r2=4150&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Window.lua (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Window.lua Tue Feb 10 
19:25:07 2009
@@ -67,6 +67,7 @@
 local EVENT_ACTION            = jive.ui.EVENT_ACTION
 local EVENT_SCROLL            = jive.ui.EVENT_SCROLL
 local EVENT_KEY_PRESS         = jive.ui.EVENT_KEY_PRESS
+local EVENT_KEY_HOLD          = jive.ui.EVENT_KEY_HOLD
 local EVENT_CHAR_PRESS         = jive.ui.EVENT_CHAR_PRESS
 local EVENT_WINDOW_PUSH       = jive.ui.EVENT_WINDOW_PUSH
 local EVENT_WINDOW_POP        = jive.ui.EVENT_WINDOW_POP
@@ -270,7 +271,7 @@
 
 function hideOnAllButtonInput(self)
        if not self.hideOnAllButtonInputHandle then
-               self.hideOnAllButtonInputHandle = self:addListener(ACTION | 
EVENT_KEY_ALL | EVENT_MOUSE_PRESS | EVENT_MOUSE_HOLD,
+               self.hideOnAllButtonInputHandle = self:addListener(ACTION | 
EVENT_KEY_PRESS | EVENT_KEY_HOLD | EVENT_MOUSE_PRESS | EVENT_MOUSE_HOLD,
                                                                function(event)
                                                                        return 
hideOnAllButtonInputListener(self, event)
                                                                end)

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to