RUM JavaScript API - 1.345.1
    Preparing search index...

    Type Alias SendUserInteractionFields

    SendUserInteractionFields: {
        keys: RUMKeyPressActionEvent["keys"];
        "ui_element.custom_name"?: string;
    } & ApiCreatedEventPropertiesEvent

    The fields allowed for Interactions.sendKeyPressEvent.

    Includes the required keys array and optional ui_element.custom_name. Additional user-defined fields are limited to event_properties.* entries. The fields object must be a JSON-serializable plain object.

    Type Declaration

    • keys: RUMKeyPressActionEvent["keys"]

      The key combination for the interaction. Must contain at least one key. Values can be Types.UserInteractionSpecialKey members or raw KeyboardEvent.key strings — raw values are normalized internally. The enum is optional but improves readability when constructing key arrays manually.

      Import UserInteractionSpecialKey from @dynatrace/rum-javascript-sdk/types/rum-events.

    • Optionalui_element.custom_name?: string

      An optional custom name for the UI element, included as ui_element.custom_name in the emitted event. This field is independent of the auto-detected element name (ui_element.detected_name). It is included in the emitted event regardless of whether elementOrEvent is provided.