"on enterKey" not working

Sarah Reichelt sarah.reichelt at gmail.com
Sat Oct 13 17:52:45 EDT 2007


> Do any of you know why I get no response from the "on enterKey"
> handler? The following handler is on the card where the button
> "Continue" resides. The docs say: The message is sent to the active
> (focused) control, or to the current card if no control is focused.
> But there is no focus on any control, and there is no text field
> active.  When I hit the enter key, nothing happens — there is no
> beep, and there is no effect on the button "Continue." Am I missing
> something embarrassingly obvious?
>
> on enterKey
>    beep
>    send mouseUp to btn "Continue"
>    click at the loc of btn "Continue"
> end enterKey

I just tested your script Paul, and it works perfectly for me. Are you
sure you are pressing Enter and not Return?

BTW, as written, your script will run the Continue button's mouseUp
script twice.

Cheers,
Sarah



More information about the use-livecode mailing list