# AcceleratorEventArgs

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

* [KeyEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.keyeventargs)
  * [AcceleratorEventArgs](https://docs.wisej.com/api/wisej.web/containers/containercontrol/wisej.web.acceleratoreventargs)

Provides data for the [Accelerator](https://docs.wisej.com/api/wisej.web/containers/containercontrol/..#accelerator) event.

{% tabs %}
{% tab title="C#" %}

```csharp
public class AcceleratorEventArgs : KeyEventArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class AcceleratorEventArgs
    Inherits KeyEventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AcceleratorEventArgs(keyData, component)

Initializes a new instance of the [KeyEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.keyeventargs) class.

| Name          | Type                                                                                           | Description                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------- | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **keyData**   | [Keys](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.keys)                       | A [Keys](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.keys) representing the key that was pressed, combined with any modifier flags that indicate which CTRL, SHIFT, and ALT keys were pressed at the same time. Possible values are obtained be applying the bitwise OR (\|) operator to constants from the [Keys](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.keys) enumeration. |
| **component** | [IWisejComponent](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcomponent) | The Wisej component that originated the keyboard event.                                                                                                                                                                                                                                                                                                                                                           |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Component

[IWisejComponent](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcomponent): Returns the Wisej component that generated the "keydown" event'.

## Used By

| Name                                                                                                                          | Description                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AcceleratorEventHandler](https://docs.wisej.com/api/wisej.web/containers/containercontrol/wisej.web.acceleratoreventhandler) | Represents the method that will handle the [Accelerator](https://docs.wisej.com/api/wisej.web/containers/containercontrol/..#accelerator) event. |
