Class Key
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
The key structure is used to store a key press.
public class Key : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
Constructors
View SourceKey()
The default constructor.
Declaration
public Key()
API Level: 3
Properties
View SourceDeviceClass
Get the device class the key event originated from.
Declaration
public DeviceClassType DeviceClass { get; }
Property Value
Type | Description |
---|---|
DeviceClassType |
API Level: 3
View SourceDeviceName
Device name
Declaration
public string DeviceName { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceDeviceSubClass
Get the device subclass the key event originated from.
Declaration
public DeviceSubClassType DeviceSubClass { get; }
Property Value
Type | Description |
---|---|
DeviceSubClassType |
API Level: 4
View SourceKeyCode
Keycode for the key pressed.
Declaration
public int KeyCode { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceKeyModifier
Special keys like Shift, Alt, and Ctrl which modify the next key pressed.
Declaration
public int KeyModifier { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceKeyPressedName
Name given to the key pressed.
Declaration
public string KeyPressedName { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceState
State of the key event.
Declaration
public Key.StateType State { get; set; }
Property Value
Type | Description |
---|---|
Key.StateType |
API Level: 3
View SourceTime
The time (in ms) that the key event occurred.
Declaration
public uint Time { get; set; }
Property Value
Type | Description |
---|---|
UInt32 |
API Level: 3
Methods
View SourceIsAltModifier()
Checks to see if Alt key modifier has been supplied.
Declaration
public bool IsAltModifier()
Returns
Type | Description |
---|---|
Boolean | True if Alt modifier. |
API Level: 3
View SourceIsCtrlModifier()
Checks to see if Ctrl (control) key modifier has been supplied.
Declaration
public bool IsCtrlModifier()
Returns
Type | Description |
---|---|
Boolean | True if Ctrl modifier. |
API Level: 3
View SourceIsShiftModifier()
Checks to see if the Shift key modifier has been supplied.
Declaration
public bool IsShiftModifier()
Returns
Type | Description |
---|---|
Boolean | True if Shift modifier. |