docs.kde.org
Keyboard Accelerator Configuration
Prev
Next

Keyboard Accelerator Configuration

A very professional thing you should always add to your application are keyboard accelerators. Those are mainly used by experienced users that want to work fast with their applications and are willing to learn shortcuts. For this, the KDE libraries provide the class KAction, which provides the keyboard accelerator keys and access to global configured standard keyboard accelerators.

By default, frame applications generated by KDevelop only use standard keyboard accelerators such as F1 for accessing online-help, Ctrl+N for New File etc.

If your application contains a lot of accelerators, you should make them configurable by an Options-menu; either it could be combined with other application configuration in a QWidget or stand alone. The KDE library already provides a KKeyChooser for use in tab dialogs, whereas KKeyDialog provides a ready-to use key-configuration dialog.

Prev
Next
Home


docs.kde.org