Add shortcut for GO event

D.Cook

Member
I'm trying to figure out a generic way to add a shortcut to the GO event (in addition to F2). Specifically I'd like to use CTRL-RETURN as an easy way to submit any form in our application.

My thoughts were to get a reference to the currently selected (if any) field widget (eg fill-in). So far I can get the name of the last used field (FIELD-NAME), but I'm not sure if I can use that to get a widget reference.. Or even the current frame would be sufficient.
Eg:
Code:
ON CTRL-RETURN ANYWHERE
   IF last-field is active THEN
      APPLY "GO" TO current-field.

If you have any other ideas on how to achieve this I'd gladly hear them! Or just how to change F2 to CTRL-RETURN (because it seems more intuitive than F2).
 
Top