Question on message handling
Ken Ray
kray at sonsothunder.com
Fri Oct 14 00:16:43 EDT 2005
On 10/13/05 9:12 AM, "Jim Hurley" <jhurley at infostations.com> wrote:
> on keyDown theKey
>
> switch theKey
> case "/"
> send "mouseUP" to button "pause"
> break
> case "\"
> send "mouseUP" to button "resume"
> break
> default
> pass keyDown
> end switch
>
> end keyDown
>
> What I found surprising (and welcome) is that the back and forward
> slashes never appear in the field.
The reason for this is that you never pass the 'keydown' when the user types
"/" or "\". The only time keys will actually appear in a field is if the
keydown handler passes them.
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list