HomeHome

Standard Accelerator Keys

Applications invariably need to define accelerator keys for actions, and Qt provides functions to help with that, most importantly QAccel::shortcutKey().

Here is Microsoft's recommendations for accelerator key choice, with comments about the Open Group's recommendations where they exist and differ. For most commands, the Open Group either has no advice or agrees with Microsoft.

The boldfaced letter plus Alt is Microsoft's recommended choice, and we recommend supporting it. For an Apply button, for example, we recommend setText( tr( "&Apply" ) );

If you have conflicting commands (e.g. About and Apply buttons in the same dialog), you're on your own.

There are also a lot of other keys and actions (that use other modifier keys). See the Microsoft and Open Group documentation for details.

The Microsoft book has ISBN 0735605661. The corresponding Open Group book is very hard to find, rather expensive and we cannot recommend it. However, if you really want it, OGPubs@opengroup.org may be able to help. Ask then for ISBN 1859121047. (This ISBN is correct, but is not listed in any database we have seen.)


Copyright © 2000 TrolltechTrademarks
Qt version 2.2.1