Class Key

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

The key structure is used to store a key press.

C#
Copy
public class Key : Disposable, IDisposable
Inheritance
object
Key
Implements
System.IDisposable

Constructors

View Source

Key()

The default constructor.

Declaration
C#
Copy
public Key()

Fields

View Source

swigCMemOwn

swigCMemOwn

Declaration
C#
Copy
protected bool swigCMemOwn
Field Value
Type Description
bool

Properties

View Source

DeviceClass

Get the device class the key event originated from.

Declaration
C#
Copy
public DeviceClassType DeviceClass { get; }
Property Value
Type Description
DeviceClassType
View Source

DeviceName

Device name

Declaration
C#
Copy
public string DeviceName { get; }
Property Value
Type Description
string
View Source

DeviceSubClass

Get the device subclass the key event originated from.

Declaration
C#
Copy
public DeviceSubClassType DeviceSubClass { get; }
Property Value
Type Description
DeviceSubClassType
View Source

KeyCode

Keycode for the key pressed.

Declaration
C#
Copy
public int KeyCode { get; set; }
Property Value
Type Description
int
View Source

KeyModifier

Special keys like Shift, Alt, and Ctrl which modify the next key pressed.

Declaration
C#
Copy
public int KeyModifier { get; set; }
Property Value
Type Description
int
View Source

KeyPressedName

Name given to the key pressed.

Declaration
C#
Copy
public string KeyPressedName { get; set; }
Property Value
Type Description
string
View Source

State

State of the key event.

Declaration
C#
Copy
public Key.StateType State { get; set; }
Property Value
Type Description
Key.StateType
View Source

Time

The time (in ms) that the key event occurred.

Declaration
C#
Copy
public uint Time { get; set; }
Property Value
Type Description
uint

Methods

View Source

Dispose(DisposeTypes)

Dispose.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

The dispose type.

Overrides
View Source

IsAltModifier()

Checks to see if Alt key modifier has been supplied.

Declaration
C#
Copy
public bool IsAltModifier()
Returns
Type Description
bool

True if Alt modifier.

View Source

IsCtrlModifier()

Checks to see if Ctrl (control) key modifier has been supplied.

Declaration
C#
Copy
public bool IsCtrlModifier()
Returns
Type Description
bool

True if Ctrl modifier.

View Source

IsShiftModifier()

Checks to see if the Shift key modifier has been supplied.

Declaration
C#
Copy
public bool IsShiftModifier()
Returns
Type Description
bool

True if Shift modifier.

Implements

System.IDisposable