Class Key

    Definition

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

    The key structure is used to store a key press.

    public class Key : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Key
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    Key()

    The default constructor of Key class.

    Declaration
    public Key()

    Properties

    View Source

    DeviceClass

    Get the device class the key event originated from.

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

    DeviceName

    Gets the device name

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

    DeviceSubClass

    Get the device subclass the key event originated from.

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

    KeyCode

    Keycode for the key pressed.

    Declaration
    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
    public int KeyModifier { get; set; }
    Property Value
    Type Description
    int
    View Source

    KeyPressed

    Get the actual string returned that should be used for input editors.

    Declaration
    public string KeyPressed { get; }
    Property Value
    Type Description
    string

    The key string

    View Source

    KeyPressedName

    Gets or sets the name given to the key pressed.

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

    KeyString

    Get the actual string returned that should be used for input editors.

    Declaration
    public string KeyString { get; set; }
    Property Value
    Type Description
    string

    The key string

    View Source

    LogicalKey

    Get the logical key string. (eg. shift + 1 == "exclamation")

    Declaration
    public string LogicalKey { get; }
    Property Value
    Type Description
    string

    The logical key symbol

    View Source

    State

    Gests or sets the state of the key event.

    Declaration
    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
    public uint Time { get; set; }
    Property Value
    Type Description
    uint

    Methods

    View Source

    IsAltModifier()

    Checks to see if Alt key modifier has been supplied.

    Declaration
    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
    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
    public bool IsShiftModifier()
    Returns
    Type Description
    bool

    True if Shift modifier.

    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    BaseHandle.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX