@nextcloud/files
    Preparing search index...

    Interface IHotkeyConfig

    interface IHotkeyConfig {
        alt?: true;
        ctrl?: true;
        description: string;
        key: string;
        shift?: boolean;
    }
    Index

    Properties

    alt?: true

    Only execute the action if the alt key is pressed

    ctrl?: true

    Only execute the action if the control key is pressed. On Mac devices the command key is used instead.

    description: string

    Short, translated, description what this action is doing. This will be used as the description next to the hotkey in the shortcuts overview.

    key: string

    The key to be pressed.

    shift?: boolean

    If set then the callback is only called when the shift key is (not) pressed. When left undefined a pressed shift key is ignored (callback is run with and without shift pressed).