Composition / foldkit-builder

CommandKey

interface · packages/builder/src/index.ts:694

interface CommandKey {
  readonly key: string
  readonly mod?: boolean
  readonly alt?: boolean
  readonly shift?: boolean
}

A key that runs a command, named as KeyboardEvent.key names it. mod is Ctrl, or ⌘ on a Mac. mod and alt must be as given; shift must be as given only where it is given, so a key that leaves it out takes either.

Members

CommandKey.key

property · packages/builder/src/index.ts:695

readonly key: string

CommandKey.mod

property · packages/builder/src/index.ts:696

readonly mod?: boolean

CommandKey.alt

property · packages/builder/src/index.ts:697

readonly alt?: boolean

CommandKey.shift

property · packages/builder/src/index.ts:698

readonly shift?: boolean