"on enterKey" not working

Kay C Lan lan.kc.macmail at gmail.com
Sat Oct 13 21:13:19 EDT 2007


On 10/14/07, Paul Gabel <paulgabel at comcast.net> wrote:

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?
>
> Is there another 'default' button on the card? The docs also say:

When the user presses Enter or Return and there is no active control,
Revolution sends a mouseUp message to the defaultButton.

I don't know what happens if you press Enter and there is more than one
'default' button (throbbing blue) but the docs say that:

If more than one button's default is true, the defaultButton property
reports the ID of the button whose default property was set to true most
recently.

So maybe if you press Enter, mouseUp is sent to the last default button
created, which in your case may not be Continue. I don't know I haven't
tested.

HTH



More information about the use-livecode mailing list