Interface for managing accelerator keys. More...
#include <SAccelerator-i.h>
Public Member Functions | |
void | RegisterAccelerator (const IAccelerator *pAcc, IAcceleratorTarget *target) PURE |
Register a keyboard accelerator for the specified target. | |
void | UnregisterAccelerator (const IAccelerator *pAcc, IAcceleratorTarget *target) PURE |
Unregister a keyboard accelerator for the specified target. | |
void | UnregisterAccelerators (IAcceleratorTarget *target) PURE |
Unregister all keyboard accelerators for the specified target. | |
Interface for managing accelerator keys.
Definition at line 69 of file SAccelerator-i.h.
void IAcceleratorMgr::RegisterAccelerator | ( | const IAccelerator * | pAcc, |
IAcceleratorTarget * | target ) |
Register a keyboard accelerator for the specified target.
If multiple targets are registered for an accelerator, a target registered later has higher priority. Note that we are currently limited to accelerators that are either:
pAcc | Pointer to the accelerator key to register. |
target | Pointer to the target that will handle the accelerator key press. |
Implemented in SFocusManager.
void IAcceleratorMgr::UnregisterAccelerator | ( | const IAccelerator * | pAcc, |
IAcceleratorTarget * | target ) |
Unregister a keyboard accelerator for the specified target.
pAcc | Pointer to the accelerator key to unregister. |
target | Pointer to the target that was handling the accelerator key press. |
Implemented in SFocusManager.
void IAcceleratorMgr::UnregisterAccelerators | ( | IAcceleratorTarget * | target | ) |
Unregister all keyboard accelerators for the specified target.
target | Pointer to the target whose accelerators should be unregistered. |
Implemented in SFocusManager.