soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
IAcceleratorMgr Interface Reference

Interface for managing accelerator keys. More...

#include <SAccelerator-i.h>

Inheritance diagram for IAcceleratorMgr:
SFocusManager

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.
 

Detailed Description

Interface for managing accelerator keys.

Definition at line 69 of file SAccelerator-i.h.

Member Function Documentation

◆ RegisterAccelerator()

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:

  • a key combination including Ctrl or Alt
  • the escape key
  • the enter key
  • any F key (F1, F2, F3 ...)
  • any browser-specific keys (as available on special keyboards)
Parameters
pAccPointer to the accelerator key to register.
targetPointer to the target that will handle the accelerator key press.

Implemented in SFocusManager.

◆ UnregisterAccelerator()

void IAcceleratorMgr::UnregisterAccelerator ( const IAccelerator * pAcc,
IAcceleratorTarget * target )

Unregister a keyboard accelerator for the specified target.

Parameters
pAccPointer to the accelerator key to unregister.
targetPointer to the target that was handling the accelerator key press.

Implemented in SFocusManager.

◆ UnregisterAccelerators()

void IAcceleratorMgr::UnregisterAccelerators ( IAcceleratorTarget * target)

Unregister all keyboard accelerators for the specified target.

Parameters
targetPointer to the target whose accelerators should be unregistered.

Implemented in SFocusManager.


The documentation for this interface was generated from the following file: