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?: stringAn 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.
The fields allowed for Interactions.sendKeyPressEvent.
Includes the required
keysarray and optionalui_element.custom_name. Additional user-defined fields are limited toevent_properties.*entries. The fields object must be a JSON-serializable plain object.