RUM JavaScript API - 1.345.1
    Preparing search index...

    Function sendKeyPressEvent

    • Safe wrapper for dynatrace.interactions.sendKeyPressEvent which reverts to a noop if RUM JavaScript or the interactions module is not available.

      Parameters

      Returns void

      import * as interactions from "@dynatrace/rum-javascript-sdk/api/interactions";
      import { UserInteractionSpecialKey } from "@dynatrace/rum-javascript-sdk/types/rum-events";

      interactions.sendKeyPressEvent({
      keys: [UserInteractionSpecialKey.CTRL, "S"]
      });