Spending too much time in the bathroom with Danny Goodman

Klaus major-k klaus at major-k.de
Wed Dec 20 13:35:56 EST 2017


Hi Richmond,

> Am 20.12.2017 um 19:31 schrieb Richmond Mathewson via use-livecode <use-livecode at lists.runrev.com>:
> 
> ...
> Anyway, I came across
> on returnInField  and
> on enterInField
> which I found (this must go down as the ultimate example of reinventing the wheel)
> are also "there" in LiveCode, which is marvellous . . .
> 
> But . . .
> as the children I code EFL programs for (and an awful lot of adults) treat the
> RETURN key and the ENTER key as functionally equivalent I will either:
> Have to endless reduplicate scripts for the RETURN and the ENTER key,
> or, erm, find a way to do something like this:
> on returnInField or EnterInField
> 
> ?

I ususally script:

on returninfield
   ## lots of code here...
   ## and here, too!
   ## and even more here...
end returninfield

on enterinfield
  returninfield
end enterinfield

:-)

> Richmond.

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list