SHIFTy thoughts

Roger.E.Eller at sealedair.com Roger.E.Eller at sealedair.com
Mon Oct 11 07:16:29 EDT 2010


Richmond wroe:
> I would love to be able to trap when a modifier key is down like this:
>
> on shiftKeyDown
>     do blah, blah, blah
> end shiftKeyDown
>
> but it seems that that is not possible in LievCode, unless, of course,
> I'm missing something . . .
>
> Richmond.

I can only determine its state within an if-then statement.  Perhaps try a
rawKey handler.

on mouseUp
   if the shiftKey is down then
      answer "DOWN, the shiftKey is."
   else
      answer "UP, the shiftKey is."
   end if
end mouseUp

~Roger





More information about the use-livecode mailing list