Allows tab and Shift tab to go forward and backwards between editable fields.
--Copyright 2003 MediaMacros, Inc.
--Place this on fields and disable the internal tab property to allow tab and shift tab (reverse) between fields
property spriteNum
on getSprites me, l
l.add(spriteNum)
end
on keyUp me
if the key = tab then
l = []
sendAllSprites(#getSprites, l)
sort(l)
p = l.getOne(spriteNum)
if the shiftDown then
--back
n = p - 1
if n < 1 then
n = l.count
end if
else
--next
n = p + 1
if n > l.count then
n = 1
end if
end if
--activate the field
the keyboardFocusSprite = l[n]
else
pass
end if
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA