"on enterKey" not working

Jim Ault JimAultWins at yahoo.com
Sun Oct 14 02:44:30 EDT 2007


put in the stack script

on enterkey
  answer "you are in the stack script, and a bit too far into the heirarchy"
end enterkey

This should not be triggered if the trapping handler is working.

Jim Ault
Las Vegas


On 10/13/07 6:13 PM, "Kay C Lan" <lan.kc.macmail at gmail.com> wrote:

> 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.
> 





More information about the use-livecode mailing list