KeyEventArgsIsKeyDown Method |
Determines whether the specified key and modifier was pressed
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public bool IsKeyDown(
Keys key,
Nullable<Keys> modifier = null
)
Public Function IsKeyDown (
key As Keys,
Optional modifier As Nullable(Of Keys) = Nothing
) As Boolean
member IsKeyDown :
key : Keys *
?modifier : Nullable<Keys>
(* Defaults:
let _modifier = defaultArg modifier null
*)
-> bool
Parameters
- key
- Type: Eto.FormsKeys
Key to test if it was pressed - modifier (Optional)
- Type: SystemNullableKeys
Modifier of the key, or null to allow any modifiers
Return Value
Type:
Booleantrue the key with modifier was pressed; otherwise,
false.
See Also