Well, that's not true either. The LASTKEY() = 27 is not necessarily fresh, so forget that part about being reliable. I guess I'm back to setting a flag in the When to know the user's next control, if mousing about. It's so easy to hit send.
>Kevin,
>I guess, but it seems pretty flakey to me. <s> If the user is typing away on the keyboard, the mouse may be above
any control so SYS(1270) doesn't really help me know their intent. When a user leaves a control, it's hard to know where s/he is headed. Using the When() method works for clicks, with controls with When events, but not for Pages and not for keypresses. However, setting a CommandButton to Cancel = .T. allows the check for LASTKEY() = 27, which is reliable.
>
>
Charlie