Mixins / foldkit-mixins-ui

CommandKeyInput

interface · packages/mixins-ui/src/command.ts:65

interface CommandKeyInput<Value extends string> {
  readonly query: string
  readonly current: Option.Option<Value>
  readonly rows: ReadonlyArray<Value>
}

What a key route reads: the field's words, the highlighted row and the rows ↑↓ can reach.

In the guides

Members

CommandKeyInput.query

property · packages/mixins-ui/src/command.ts:67

readonly query: string

What the field holds now, including a character typed since the last drawing.

CommandKeyInput.current

property · packages/mixins-ui/src/command.ts:68

readonly current: Option.Option<Value>

CommandKeyInput.rows

property · packages/mixins-ui/src/command.ts:70

readonly rows: ReadonlyArray<Value>

The rows the keys step through, in order: the enabled ones the query leaves.