| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (4 out of 5)

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:

  1. Create a User Menu Choice whose Action invokes gms-execute-activation-callback, either directly or by starting a procedure.

  2. Specify the Applicable-class of the User Menu Choice to be the class for which the accelerator is to work.

  3. Configure the class referenced in Applicable-class to bind the desired keystroke to the User Menu Choice.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (4 out of 5)

Copyright © 1997 Gensym Corporation, Inc.