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.
Timeout in milliseconds to wait for the RUM JavaScript to be available (default: 10000)
A DynatraceError if the RUM JavaScript or User Interaction module is not available within the timeout, or the namespace is overridden with an incompatible object
Async wrapper for dynatrace.interactions.sendKeyPressEvent. This function is only available if the User Interaction module is enabled.