Author: tom
Date: Mon Mar  9 09:44:13 2009
New Revision: 4727

URL: http://svn.slimdevices.com/jive?rev=4727&view=rev
Log:
Bug: N/A
Description:
Textinput: 'back moves cursor' was mistakenly removed during action code 
changes, is now returned

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

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Textinput.lua
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Textinput.lua?rev=4727&r1=4726&r2=4727&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Textinput.lua (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Textinput.lua Mon Mar  
9 09:44:13 2009
@@ -254,6 +254,18 @@
                self:playSound("BUMP")
                self:getWindow():bumpRight()
        end
+       return EVENT_CONSUME
+end
+
+function _cursorBackAction(self)
+       if self.cursor == 1 then
+               self:playSound("WINDOWHIDE")
+               self:hide()
+       else
+               _moveCursor(self, -1)
+               self:reDraw()
+       end
+
        return EVENT_CONSUME
 end
 
@@ -369,6 +381,7 @@
        obj:addActionListener("play", obj, _deleteAction)
        obj:addActionListener("add", obj, _insertAction)
        obj:addActionListener("go", obj, _goAction)
+       obj:addActionListener("back", obj, _cursorBackAction)
 
        obj:addListener(EVENT_CHAR_PRESS| EVENT_KEY_PRESS | EVENT_SCROLL | 
EVENT_WINDOW_RESIZE,
                        function(event)

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

Reply via email to