Make down arrow behave like tab key

Howard Bornstein howard.bornstein at gmail.com
Thu Apr 14 13:04:42 EDT 2005


Try this:

on arrowKey theKey
  put the number of the target into tFldNum
  if theKey is "down" then
    if there is a fld (tFldNum+1) then
      focus on fld (tFldNum+1)
    end if
  else if theKey is "up" then
    if there is a fld (tFldNum-1) then
      focus on fld (tFldNum-1)
    end if
  end if
end arrowKey

Put this in the card or stack script. You'll have to add a little more
code if you want to make it wrap around when you hit the first or last
field.

On 4/14/05, Kaveh Bazargan <kaveh at river-valley.com> wrote:
> I have several fields in a stack and I want to be able to navigate
> through
> them using up and down arrow keys (I find shift tab not friendly). So
> how
> can I make down arrow act like tab, and up arrow act like shift-tab?
> 
> I have tried
> 
> on arrowKey theKey
>      if theKey is "down" then
>        tabKey
>      end if
>    end if
> end arrowKey
> 
> But tabKey handler is not found. Also tried
> 
> send tabKey to fld ...
> 
> etc.
> --
> 
> Kaveh Bazargan
> http://www.river-valley.com/
> http://www.holographer.org/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 


-- 
Regards,

Howard Bornstein
-----------------------
www.designeq.com


More information about the use-livecode mailing list