Enumeration UICommandEventType

Type of valid command events.

Constructors

  • Parameters

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

    Returns UICommandEventType

Values

Backspace = 32

Backspace key was pressed.

Confirm = 34

Enter key was pressed.

Delete = 30

Delete key was pressed.

Escape = 29

Escape key was pressed.

FocusGained = 2

UI element gained input focus.

FocusLost = 1

UI element lost input focus.

Insert = 31

Insert key was pressed.

MoveDown = 8

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

MoveEdgeDown = 14

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

MoveEdgeLeft = 3

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

MoveEdgeRight = 4

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

MoveEdgeUp = 13

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

MoveLeft = 5

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

MovePageDown = 10

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

MovePageUp = 9

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

MoveRight = 6

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

MoveUp = 7

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

MoveWordLeft = 11

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

MoveWordRight = 12

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

Redraw = 0

UI system is forcing the UI element to redraw itself.

Return = 33

Shift + Enter was pressed.

SelectDown = 24

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

SelectEdgeDown = 18

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

SelectEdgeLeft = 19

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

SelectEdgeRight = 20

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

SelectEdgeUp = 17

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

SelectLeft = 21

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

SelectLineEnd = 26

Input selection was moved to the end of the line.

SelectLineStart = 25

Input selection was moved to the start of the line.

SelectPageDown = 28

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

SelectPageUp = 27

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

SelectRight = 22

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

SelectUp = 23

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

SelectWordLeft = 15

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

SelectWordRight = 16

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

Tab = 35

Tab key was pressed.

TabBackwards = 36

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.