Class KeyPressedEventResult
Inherited Members
Namespace:RoboDk.API
Assembly: RoboDkApi.dll
Syntax
public class KeyPressedEventResult : EventResult
Constructors
|Improve this Doc View SourceKeyPressedEventResult(IItem, int, KeyPressState, int)
Key pressed event.
Declaration
公共KeyPressedEventResult(IItem item, int keyId, KeyPressedEventResult.KeyPressState keyState, int modifiers)
Parameters
Type | Name | Description |
---|---|---|
IItem | item | |
int | keyId | 键id根据Qt映射:https://doc.qt.io/qt-5/qt.html#Key-enum |
KeyPressedEventResult.KeyPressState | keyState | Pressed or Released |
int | modifiers | Modifier bits as per Qt mappings:https://doc.qt.io/qt-5/qt.html#KeyboardModifier-enum |
Properties
|Improve this Doc View SourceKeyId
键id根据Qt映射:https://doc.qt.io/qt-5/qt.html#Key-enum
Declaration
public int KeyId { get; }
Property Value
Type | Description |
---|---|
int |
KeyState
Is key pressed or released
Declaration
公共KeyPressedEventResult.KeyPressState KeyState { get; }
Property Value
Type | Description |
---|---|
KeyPressedEventResult.KeyPressState |
Modifiers
Modifier bits as per Qt mappings:https://doc.qt.io/qt-5/qt.html#KeyboardModifier-enum
Declaration
public int Modifiers { get; }
Property Value
Type | Description |
---|---|
int |