Trapping the Option or Command keys
    Sarah Reichelt 
    sarah.reichelt at gmail.com
       
    Mon Jul 27 19:05:51 EDT 2009
    
    
  
On Tue, Jul 28, 2009 at 8:52 AM, <DunbarX at aol.com> wrote:
> Sarah:
>
> Just curious. Do you use "command" instead of (good ol') "on"?
>
"command" was introduced in 3.? (3.5 I think) and I am gradually
training myself to use it.
The idea is that system messages still use "on", so you have "on
mouseUp", "on preOpenStack" etc.
But your own handlers use "command" instead of "on" to make it clearer
what's what.
"function" remains unchanged.
However it's just a matter of style, I don't think either way is
inherently more correct and as far as I know, RunRev is not going to
make either one compulsory any time soon.
Cheers,
Sarah
    
    
More information about the use-livecode
mailing list