hl.dsp.send_shortcut

hl.dsp.send_shortcut(spec: table)

Create a dispatcher.

Signature

hl.dsp.send_shortcut(spec: table): HL.Dispatcher

Parameters

modsstring

Modifier string.

keystring

Key name, code:<number>, or mouse:<number>.

windowHL.WindowSelector, optional

Target window.

Returns

dispatcherHL.Dispatcher

Dispatcher object returned by this function.

Examples

hl.dispatch(hl.dsp.send_shortcut({ mods = "CTRL", key = "C" }))

See also

HL.Dispatcher

Dispatcher object returned by this function.

hl.bind()

Bind a dispatcher to a key.

hl.dispatch()

Execute a dispatcher immediately.