Implementing Keyboard Accelerators
Specifying a keyboard accelerator is largely a matter of writing G2 code. This code binds a keystroke to a call to gms-execute-activation-callback. For details:
To implement a keyboard accelerator:
- Create a User Menu Choice whose
Action invokes gms-execute-activation-callback, either directly or by starting a procedure.
- Specify the
Applicable-class of the User Menu Choice to be the class for which the accelerator is to work.
- Configure the class referenced in
Applicable-class to bind the desired keystroke to the User Menu Choice.
Copyright © 1997 Gensym Corporation, Inc.