Trilium Frontend API
    Preparing search index...

    Interface KeystrokeHandlerOptions

    module:utils/keystrokehandler~KeystrokeHandler#set method options.

    interface KeystrokeHandlerOptions {
        filter?: (keyEvtData: KeyboardEvent) => boolean;
        priority?: PriorityString;
    }
    Index

    Properties

    Properties

    filter?: (keyEvtData: KeyboardEvent) => boolean

    An optional callback function allowing for filtering keystrokes based on arbitrary criteria. The callback function receives keydown DOM event as a parameter.

    priority?: PriorityString

    The priority of the keystroke callback. The higher the priority value the sooner the callback will be executed. Keystrokes having the same priority are called in the order they were added.