The interaction fields. Must contain a keys array with at least one key.
Values can be Types.UserInteractionSpecialKey members or raw
KeyboardEvent.key
strings — raw values are normalized internally if applicable.
The fields object must be JSON-serializable. Optional ui_element.custom_name and
event_properties.* entries are allowed. See SendUserInteractionFields for details.
OptionalelementOrEvent: Event | ElementAn optional Element or KeyboardEvent used to auto-generate UI element fields. When a KeyboardEvent is provided, the target element is resolved from the event.
Safe wrapper for dynatrace.interactions.sendKeyPressEvent which reverts to a noop if RUM JavaScript or the interactions module is not available.