selecting from a list with aid of keyboard

Kurt Kaufman kurtkaufman at hotmail.com
Thu May 5 13:00:16 EDT 2005


Well, here's a start:
(script of list "thelist")

on keydown whichkey
if whichkey is not in "abcdefghijklmnopqrstuvwxyz" then exit mousedown
repeat with x = 1 to the number of lines in cd fld "thelist"
   if the first char of line x of cd fld "thelist" = whichkey then
      select line x of cd fld "thelist"
      exit repeat
   end if
end repeat
pass keydown
end keydown




More information about the use-livecode mailing list