Enumeration UICommandEventType

Type of valid command events.

Constructors

  • Parameters

    • do_not_: undefined
    • construct_: undefined
    • this_: undefined
    • type_: undefined

    Returns UICommandEventType

Values

Backspace: EnumValue<UICommandEventType, number>

Backspace key was pressed.

Confirm: EnumValue<UICommandEventType, number>

Enter key was pressed.

Delete: EnumValue<UICommandEventType, number>

Delete key was pressed.

Escape: EnumValue<UICommandEventType, number>

Escape key was pressed.

FocusGained: EnumValue<UICommandEventType, number>

UI element gained input focus.

FocusLost: EnumValue<UICommandEventType, number>

UI element lost input focus.

Insert: EnumValue<UICommandEventType, number>

Insert key was pressed.

MoveDown: EnumValue<UICommandEventType, number>

Input was moved down (for example for navigating an input box).

MoveEdgeDown: EnumValue<UICommandEventType, number>

Input was moved to the down edge (for example for navigating an input box).

MoveEdgeLeft: EnumValue<UICommandEventType, number>

Input was moved to the left over an edge (for example for navigating an input box).

MoveEdgeRight: EnumValue<UICommandEventType, number>

Input was moved to the right over an edge (for example for navigating an input box).

MoveEdgeUp: EnumValue<UICommandEventType, number>

Input was moved to the up edge (for example for navigating an input box).

MoveLeft: EnumValue<UICommandEventType, number>

Input was moved left (for example for navigating an input box).

MovePageDown: EnumValue<UICommandEventType, number>

Input was moved one page down (i.e. page-down key as been pressed).

MovePageUp: EnumValue<UICommandEventType, number>

Input was moved one page up (i.e. page-up key as been pressed).

MoveRight: EnumValue<UICommandEventType, number>

Input was moved right (for example for navigating an input box).

MoveUp: EnumValue<UICommandEventType, number>

Input was moved up (for example for navigating an input box).

MoveWordLeft: EnumValue<UICommandEventType, number>

Input was moved a word to the left (for example for navigating an input box).

MoveWordRight: EnumValue<UICommandEventType, number>

Input was moved a word to the right (for example for navigating an input box).

Redraw: EnumValue<UICommandEventType, number>

UI system is forcing the UI element to redraw itself.

Return: EnumValue<UICommandEventType, number>

Shift + Enter was pressed.

SelectDown: EnumValue<UICommandEventType, number>

Input selection was moved down (for example for selecting text in an input box).

SelectEdgeDown: EnumValue<UICommandEventType, number>

Input selection was moved an edge down direction (for example for selecting text in an input box).

SelectEdgeLeft: EnumValue<UICommandEventType, number>

Input selection was moved an edge left direction (for example for selecting text in an input box).

SelectEdgeRight: EnumValue<UICommandEventType, number>

Input selection was moved an edge right direction (for example for selecting text in an input box).

SelectEdgeUp: EnumValue<UICommandEventType, number>

Input selection was moved an edge up direction (for example for selecting text in an input box).

SelectLeft: EnumValue<UICommandEventType, number>

Input selection was moved left (for example for selecting text in an input box).

SelectLineEnd: EnumValue<UICommandEventType, number>

Input selection was moved to the end of the line.

SelectLineStart: EnumValue<UICommandEventType, number>

Input selection was moved to the start of the line.

SelectPageDown: EnumValue<UICommandEventType, number>

Input selection was moved one page down (i.e. page-down key as been pressed).

SelectPageUp: EnumValue<UICommandEventType, number>

Input selection was moved one page up (i.e. page-up key as been pressed).

SelectRight: EnumValue<UICommandEventType, number>

Input selection was moved right (for example for selecting text in an input box).

SelectUp: EnumValue<UICommandEventType, number>

Input selection was moved up (for example for selecting text in an input box).

SelectWordLeft: EnumValue<UICommandEventType, number>

Input selection was moved a word to the left direction (for example for selecting text in an input box).

SelectWordRight: EnumValue<UICommandEventType, number>

Input selection was moved a word to the right direction (for example for selecting text in an input box).

Tab key was pressed.

TabBackwards: EnumValue<UICommandEventType, number>

Shift + Tab key was pressed.

Methods

  • Takes an array of enum values and combines them as a single enum flag value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    Returns EnumValueTyped<T, number>

    The combined enum value.

  • Type Parameters

    • T

    Parameters

    Returns string

    Compatibility

  • Returns string[]

    Compatibility

  • Parameters

    • index: number

    Returns number

    Compatibility

  • Returns number[]

    Compatibility

  • Gets the name for the enumeration value that matches the specified enumValue.

    Type Parameters

    • T

    Parameters

    Returns string

    The enumeration value or undefined if not found.

  • Gets the enumeration names

    Returns string[]

    The enumeration names.

  • Gets the enumeration value at the specified index.

    Type Parameters

    • T = number

    Parameters

    • index: number

      The index.

    Returns EnumValueTyped<T, number>

    The enumeration value or undefined if not found.

  • Determines if the enum value has the flags set.

    Type Parameters

    Parameters

    Returns boolean

  • Determines if the enum bits were changed from previousValue to currentValue.

    Type Parameters

    Parameters

    Returns boolean

  • Iterates the enumeration names

    Returns Generator<string, any, any>

    The enumeration names.

  • Iterates the enumeration values

    Type Parameters

    • T = any

    Returns Generator<EnumValueTyped<T, number>, any, any>

    The enumeration values.

  • Takes a single enum value and splits it into separated flag values set on the value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    • value: number | BrandedType<number, "enum"> | BrandedType<T, "enum">

      The enum value to have it's value split using bitwise-and operator.

    Returns EnumValueTyped<T, number>[]

    An array of each "bit flag" set in the enum.