plugin.field.image-annotation.hotkeys

Used to set hotkeys for the field.image-annotation component.

You can set hotkeys to select area types and selection modes and to confirm or cancel area creation. When setting hotkeys, you can use the up and down arrows (up,down), numbers, and Latin letters.

View example in the sandbox.

Component properties

NameTypeDescription
type*"plugin.field.image-annotation.hotkeys"

Set component type

cancelstring

Keyboard shortcut for canceling area creation.

confirmstring

Keyboard shortcut for confirming area creation.

labelsarray

Keyboard shortcuts for choosing area types. They're assigned to buttons in the order they are shown if you enabled the option to choose multiple area types.

labels[]string

A keyboard shortcut.

modesobject

Keyboard shortcuts for choosing selection modes.

modes.pointstring

Keyboard shortcut for selecting areas using points.

modes.polygonstring

Keyboard shortcut for selecting areas using polygons.

modes.rectanglestring

Keyboard shortcut for selecting areas using rectangles.

modes.selectstring

Keyboard shortcut for selecting shapes and points.