Author: bklaas
Date: Tue Jan 20 12:31:16 2009
New Revision: 3899
URL: http://svn.slimdevices.com?rev=3899&root=Jive&view=rev
Log:
Bug: n/a
Description: event handling fix in NowPlaying applet
cull unneeded and unused constant declarations
Modified:
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
Modified:
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
URL:
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua?rev=3899&root=Jive&r1=3898&r2=3899&view=diff
==============================================================================
---
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
(original)
+++
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
Tue Jan 20 12:31:16 2009
@@ -28,15 +28,6 @@
local datetime = require("jive.utils.datetime")
local appletManager = appletManager
-
-
-local WH_FILL = jive.ui.WH_FILL
-local LAYOUT_NORTH = jive.ui.LAYOUT_NORTH
-local LAYOUT_EAST = jive.ui.LAYOUT_EAST
-local LAYOUT_SOUTH = jive.ui.LAYOUT_SOUTH
-local LAYOUT_WEST = jive.ui.LAYOUT_WEST
-local LAYOUT_CENTER = jive.ui.LAYOUT_CENTER
-local LAYOUT_NONE = jive.ui.LAYOUT_NONE
local jiveMain = jiveMain
local jnt = jnt
@@ -438,7 +429,7 @@
local type = event:getType()
local keyPress = event:getKeycode()
- if keyPress == KEY_BACK and windowStyle == 'browse' then
+ if (keyPress == KEY_BACK or keyPress == KEY_LEFT) and
windowStyle == 'browse' then
window:playSound("WINDOWHIDE")
window:hide()
return EVENT_CONSUME
@@ -449,7 +440,7 @@
appletManager:callService("goHome")
return EVENT_CONSUME
- elseif keyPress == KEY_GO then
+ elseif keyPress == KEY_GO or keyPress == KEY_RIGHT then
window:playSound("WINDOWSHOW")
if playlistSize == 1 then
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins