interface HotKeyConfig {
    condition?: Condition;
    description?: string;
    handler: Handler;
    info?: string;
    key: Key;
    name?: string;
    show?: boolean;
}

Properties

condition?: Condition

快捷键触发回调的条件函数

Default

() => true
description?: string

快捷键功能描述

handler: Handler

快捷键回调函数

info?: string

快捷键的额外信息(当快捷键冲突时会提示该信息)

key: Key

快捷键字符

单个:'ctrl+a'

多个:['ctrl+a', 'ctrl+b', 'meta+a']

name?: string

快捷功能名称

show?: boolean

快捷键是否露出

Default

false

Generated using TypeDoc