ComPDFKit Web SDK
    Preparing search index...

    Function trigger

    • Runs the handler bound to a key without a real key press.

      Parameters

      • shortcut: string

        The key, for example ctrl+z.

      • OptionaleventType: string

        'keydown' (the default) or 'keyup'.

      Returns void

      instance.UI.hotkeys.trigger(instance.UI.hotkeys.Keys.CTRL_Z);