On 5/9/13 1:48 PM, Dr. Hawkins wrote:
On Thu, May 9, 2013 at 11:12 AM, J. Landman Gay
<jac...@hyperactivesw.com> wrote:

Depending on your scripts, it may work to add this to your keystroke macro:

  if the selectedfield is not empty then select empty

That should give you either a closefield or an exitfield.

The situation I need to catch is something along the lines of a 5 in
the field, the user changes to 6, and hits the hotkey to close down.
If I were the typist, I'd have tabbed out first (which is why this
lasted so long).  Once you put real people at the keyboard, though . .
. (and we discovered this by my assistant using the program . . )



The line of script will simulate tabbing out if the insertion point is in a field. The engine will then send either a closefield or exitfield, depending on whether the text has changed.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to