# IRsAcceleratorHandler Struct Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | OnAccelerator ([in] RtAccelerator *pAccelerator)

## Detailed Description

IRsAcceleratorHandler handles the accelerator key press.

## Member Function Documentation

HRESULT IRsAcceleratorHandler::OnAccelerator | ( | [in] RtAccelerator * | pAccelerator | ) |

Handle the accelerator key. Return S_OK if key was handled. Return S_FALSE if key was not handled and another handler should do it. Return error code if error prevents processing of other keys and processing should be terminated.

WARNING - Accelerators are processed inside mouse events. You are not allowed to access graph during processing.

- The processing should be as short as possible. If you require longer processing you have to post a command or perform another way of asyncrhonous processing.