Skip to content

@graphty/graphty-element / catalog / CanvasKeyDescriptor

Interface: CanvasKeyDescriptor ​

Defined in: graphty-element/src/catalog/canvasKeys.ts:28

One thing a key does on the focused canvas.

Properties ​

action ​

readonly action: CanvasKeyAction

Defined in: graphty-element/src/catalog/canvasKeys.ts:30

What it does.


keys ​

readonly keys: readonly string[]

Defined in: graphty-element/src/catalog/canvasKeys.ts:36

The keys, as KeyboardEvent.key spells them, letters lower case.


plainName ​

readonly plainName: string

Defined in: graphty-element/src/catalog/canvasKeys.ts:32

The default name to show for it, such as "Zoom in". An application may replace it by action.


view ​

readonly view: CanvasKeyView

Defined in: graphty-element/src/catalog/canvasKeys.ts:34

Which camera it works in.