Skip to content

@fabwcie/free-drawing / utils/HotKey / HotKey

Class: HotKey ​

Defined in: packages/free-drawing/src/utils/HotKey.ts:15

Keyboard shortcuts of drawer, listened on its container: tools, selection (move, delete, duplicate, group, order, flip, rotate), history, files, panels. Nothing runs during a pointer action, shortcuts modifying the drawing do nothing in read only.

Constructors ​

Constructor ​

new HotKey(drawer): HotKey

Defined in: packages/free-drawing/src/utils/HotKey.ts:23

Listens to shortcuts on keydown of the drawer container

Parameters ​

drawer ​

Drawer

drawer whose shortcuts are handled

Returns ​

HotKey

Properties ​

drawer ​

drawer: Drawer

Defined in: packages/free-drawing/src/utils/HotKey.ts:17

Drawer whose shortcuts are handled