KeyEventArgs
Wisej.Web.KeyEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Provides data for the KeyDown or KeyUp event.
Constructors
KeyEventArgs(keyData)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Initializes a new instance of the KeyEventArgs class.
Name | Type | Description |
---|---|---|
keyData |
Properties
Alt
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Boolean: Returns whether the ALT key was pressed.
Control
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Boolean: Returns whether the CTRL key was pressed.
Handled
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Boolean: Returns or sets whether the event was handled.
KeyCode
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Keys: Returns the keyboard code..
KeyData
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Keys: Returns the key data.
KeyValue
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Int32: Returns the keyboard value.
Modifiers
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Keys: Returns the modifier flags indicating which combination of CTRL, SHIFT, and ALT keys was pressed.
Shift
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Boolean: Returns a value indicating whether the SHIFT key was pressed.
Methods
IsAltPressed()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Returns whether the Alt key is pressed.
Returns: Boolean.
IsCtrlPressed()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Returns whether the Control key is pressed.
Returns: Boolean.
IsShiftPressed()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Returns whether the Shift key is pressed.
Returns: Boolean.
Used By
Name | Description |
---|---|
Last updated